@cecamp Shouldn't this be "ensure"?
--- a/runtime/autoload/zip.vim +++ b/runtime/autoload/zip.vim @@ -65,7 +65,7 @@ endif " zip#Browse: {{{2 fun! zip#Browse(zipfile) " call Dfunc("zip#Browse(zipfile<".a:zipfile.">)") - " sanity check: insure that the zipfile has "PK" as its first two letters + " sanity check: ensure that the zipfile has "PK" as its first two letters " (zipped files have a leading PK as a "magic cookie") if !filereadable(a:zipfile) || readfile(a:zipfile, "", 1)[0] !~ '^PK' exe "noswapfile noautocmd noswapfile e ".fnameescape(a:zipfile)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.![]()
An extra space remaining:
--- a/runtime/optwin.vim +++ b/runtime/optwin.vim @@ -848,7 +848,7 @@ if has("digraphs") endif call <SID>AddOption("tildeop", gettext("the \"~\" command behaves like an operator")) call <SID>BinOptionG("top", &top) -call <SID>AddOption("operatorfunc", gettext("function called for the \"g@\" operator")) +call <SID>AddOption("operatorfunc", gettext("function called for the \"g@\" operator")) call <SID>OptionG("opfunc", &opfunc) call <SID>AddOption("showmatch", gettext("when inserting a bracket, briefly jump to its match")) call <SID>BinOptionG("sm", &sm)
This is the second time that the fixes to correct "insure" to "ensure" was reverted. :-(
This is the second time that the fixes to correct "insure" to "ensure" was reverted. :-(
Either spelling is acceptable.
And one more fix to optwin.vim (missing comma after "utf-8"):
--- a/runtime/optwin.vim +++ b/runtime/optwin.vim @@ -1267,7 +1267,7 @@ endif call <SID>Header(gettext("multi-byte characters")) -call <SID>AddOption("encoding", gettext("character encoding used in Vim: \"latin1\", \"utf-8\"\n\"euc-jp\", \"big5\", etc.")) +call <SID>AddOption("encoding", gettext("character encoding used in Vim: \"latin1\", \"utf-8\",\n\"euc-jp\", \"big5\", etc.")) call <SID>OptionG("enc", &enc) call <SID>AddOption("fileencoding", gettext("character encoding for the current file")) call append("$", "\t" .. s:local_to_buffer)
—
You are receiving this because you commented.
I did also send in a patch that adds a test to prove that this is fixed. I'll post it here in case you would like to include it...
diff --git a/src/testdir/test_man.vim b/src/testdir/test_man.vim index d2f48e8b0..0a7659a5e 100644 --- a/src/testdir/test_man.vim +++ b/src/testdir/test_man.vim @@ -132,4 +132,15 @@ func Test_keep_unnamed_register() %bw! endfunc +" Check that underlying shell command arguments are escaped. +func Test_shellescape_used() + Man `touch\ Xbar` `touch\ Xfoo` + + call assert_false(filereadable('Xbar')) + call assert_false(filereadable('Xfoo')) + + call delete('Xbar') + call delete('Xfoo') +endfunc + " vim: shiftwidth=2 sts=2 expandtab