runtime(racket): Make visual K mapping more robust for shell injection

Commit: 
https://github.com/vim/vim/commit/82ebaa79b03f0f9d66eeba51570c62a83096108f
Author: Christian Brabandt <[email protected]>
Date:   Wed Apr 1 08:10:15 2026 +0000

    runtime(racket): Make visual K mapping more robust for shell injection
    
    fyi @benknoble
    
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/runtime/ftplugin/racket.vim b/runtime/ftplugin/racket.vim
index 14a98ab79..000f0ea3b 100644
--- a/runtime/ftplugin/racket.vim
+++ b/runtime/ftplugin/racket.vim
@@ -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

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1w7qj9-00GC6w-3E%40256bit.org.

Raspunde prin e-mail lui