]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(doc): Update wrong shellescape() example
authorChristian Brabandt <cb@256bit.org>
Thu, 21 May 2026 20:15:59 +0000 (20:15 +0000)
committerChristian Brabandt <cb@256bit.org>
Thu, 21 May 2026 20:15:59 +0000 (20:15 +0000)
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/various.txt

index e60a557dfdbf526b1bdd649e79dcd4f0b1cc599e..761dba1c6119659f96e617b1009b1e16b4b9141c 100644 (file)
@@ -1,4 +1,4 @@
-*various.txt*  For Vim version 9.2.  Last change: 2026 Apr 27
+*various.txt*  For Vim version 9.2.  Last change: 2026 May 21
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -296,7 +296,7 @@ g8                  Print the hex values of the bytes used in the
                        name does not contain a single quote: >
                                :!ls '%'
 <                      This should always work, but it's more typing: >
-                               :exe "!ls " .. shellescape(expand("%"))
+                               :exe "!ls " .. shellescape(expand("%"),1)
 <                      To get a literal "%" or "#" prepend it with a
                        backslash.  For example, to list all files starting
                        with "%": >