]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(racket): Make visual K mapping more robust for shell injection
authorChristian Brabandt <cb@256bit.org>
Wed, 1 Apr 2026 08:10:15 +0000 (08:10 +0000)
committerChristian Brabandt <cb@256bit.org>
Wed, 1 Apr 2026 08:10:15 +0000 (08:10 +0000)
fyi @benknoble

Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/ftplugin/racket.vim

index 14a98ab790f5a4d95e88fac4b1890dbb6819d847..000f0ea3b3587f02cdfd4a27633b0d0387cd6445 100644 (file)
@@ -5,6 +5,7 @@
 " URL:                  https://github.com/benknoble/vim-racket
 " Last Change:          2025 Aug 09
 " 2026 Mar 31 by Vim project: use shellescape for the K mapping
+" 2026 Apr 01 by Vim project: make K mapping more robust for shell injection
 
 if exists("b:did_ftplugin")
   finish
@@ -52,7 +53,7 @@ if !exists("no_plugin_maps") && !exists("no_racket_maps")
     try
       let l:old_a = @a
       normal! gv"ay
-      call system("raco docs '". shellescape(@a) . "'")
+      call system("raco docs -- ". string(shellescape(@a)))
       redraw!
       return @a
     finally