Skip to content

Commit 82ebaa7

Browse files
committed
runtime(racket): Make visual K mapping more robust for shell injection
fyi @benknoble Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 8c8772c commit 82ebaa7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

runtime/ftplugin/racket.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
" URL: https://github.com/benknoble/vim-racket
66
" Last Change: 2025 Aug 09
77
" 2026 Mar 31 by Vim project: use shellescape for the K mapping
8+
" 2026 Apr 01 by Vim project: make K mapping more robust for shell injection
89

910
if exists("b:did_ftplugin")
1011
finish
@@ -52,7 +53,7 @@ if !exists("no_plugin_maps") && !exists("no_racket_maps")
5253
try
5354
let l:old_a = @a
5455
normal! gv"ay
55-
call system("raco docs '". shellescape(@a) . "'")
56+
call system("raco docs -- ". string(shellescape(@a)))
5657
redraw!
5758
return @a
5859
finally

0 commit comments

Comments
 (0)