diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-07-20 17:32:38 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-07-20 17:32:38 +0200 |
commit | 49771f4fb03349d87e42c12305ebd5b307f3c2bd (patch) | |
tree | 89eb7ec2a47e0e9582b45b7586c43b70fa53dc1b /src/testdir | |
parent | c7040a5615827cefe0edbdf7f69c6640fa1aa1e1 (diff) | |
download | vim-git-49771f4fb03349d87e42c12305ebd5b307f3c2bd.tar.gz |
Change 'cryptmethod' from a number to a string option. Make it global-local.
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test71.in | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/testdir/test71.in b/src/testdir/test71.in index 56dee5574..7de293054 100644 --- a/src/testdir/test71.in +++ b/src/testdir/test71.in @@ -4,9 +4,9 @@ STARTTEST :so small.vim :/^start of text/+1 :let text_lines = getline('.', line('.') + 2) -:/^start of cm=0 bytes/+1 +:/^start of cm=zip bytes/+1 :let cm0_bytes = getline('.', '.') -:/^start of cm=1 bytes/+1 +:/^start of cm=blowfish bytes/+1 :let cm1_bytes = getline('.', '.') :bwipe :call append(0, text_lines) @@ -20,9 +20,9 @@ foobar foobar :let cm0_read_back = getline('.', '$') :set key= -:set cryptmethod=1 -:" If the blowfish test fails 'cryptmethod' will be 0 now. -:%s/^/\=&cryptmethod == 1 ? "OK " : "blowfish test failed "/ +:set cryptmethod=blowfish +:" If the blowfish test fails 'cryptmethod' will be 'zip' now. +:%s/^/\=&cryptmethod == 'blowfish' ? "OK " : "blowfish test failed "/ :X barfoo barfoo @@ -66,10 +66,10 @@ line 2 foo bar blah line 3 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx end of text -start of cm=0 bytes +start of cm=zip bytes VimCrypt~01!lV'Þ}Mg ê£V©çE#3Ž2Ué— -end of cm=0 bytes +end of cm=zip bytes -start of cm=1 bytes +start of cm=blowfish bytes VimCrypt~02!k)¾—#ÝSœõ=ºàÈ#¥M´†JÃAÍ¥M´†!€›õáÒ‚˜÷
Ú -end of cm=1 bytes +end of cm=blowfish bytes |