summaryrefslogtreecommitdiff
path: root/src/testdir
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-05-30 22:48:02 +0200
committerBram Moolenaar <Bram@vim.org>2010-05-30 22:48:02 +0200
commita3ff49fdccd518c91c9445ab3e82394b6812bf4a (patch)
tree217470dbbb910970ca4f8d969938d1d284cbcb47 /src/testdir
parent6ed8ed84f970dd2cdb7cbcb71746665cece4d063 (diff)
downloadvim-a3ff49fdccd518c91c9445ab3e82394b6812bf4a.zip
Crypt the text in the undo file if the file itself is crypted.
Diffstat (limited to 'src/testdir')
-rw-r--r--src/testdir/test72.in49
-rw-r--r--src/testdir/test72.ok8
2 files changed, 57 insertions, 0 deletions
diff --git a/src/testdir/test72.in b/src/testdir/test72.in
index a5674b527..b6c6bfab3 100644
--- a/src/testdir/test72.in
+++ b/src/testdir/test72.in
@@ -49,6 +49,55 @@ dd:set ul=100
:e Xtestfile
uuu:w >>test.out
:"
+:" And now with encryption, cryptmethod=0
+:e! Xtestfile
+:set undofile cm=0
+ggdG
+imonday
+tuesday
+wednesday
+thursday
+friday:set ul=100
+kkkdd:set ul=100
+dd:set ul=100
+dd:set ul=100
+:X
+foobar
+foobar
+:w!
+:bwipe!
+:e Xtestfile
+foobar
+:set key=
+uu:w >>test.out
+:"
+:"
+:" With encryption, cryptmethod=1
+:e! Xtestfile
+:set undofile cm=1
+ggdG
+ijan
+feb
+mar
+apr
+jun:set ul=100
+kk0ifoo :set ul=100
+dd:set ul=100
+ibar :set ul=100
+:X
+foobar
+foobar
+:w!
+:bwipe!
+:e Xtestfile
+foobar
+:set key=
+/bar
+:.w >>test.out
+u:.w >>test.out
+u:.w >>test.out
+u:.w >>test.out
+:"
:" Rename the undo file so that it gets cleaned up.
:call rename(".Xtestfile.un~", "Xtestundo")
:qa!
diff --git a/src/testdir/test72.ok b/src/testdir/test72.ok
index 66e7250df..44210c942 100644
--- a/src/testdir/test72.ok
+++ b/src/testdir/test72.ok
@@ -7,3 +7,11 @@ seven
eight
nine
ten
+monday
+wednesday
+thursday
+friday
+bar apr
+apr
+foo mar
+mar