Skip to content

Commit 374f06f

Browse files
runtime(racket): Use shellescape() to harden the K mapping
fyi: @benknoble Co-authored-by: Michał Majchrowicz <mmajchrowicz@afine.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent b5efce0 commit 374f06f

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
@@ -4,6 +4,7 @@
44
" Previous Maintainer: Will Langstroth <will@langstroth.com>
55
" URL: https://github.com/benknoble/vim-racket
66
" Last Change: 2025 Aug 09
7+
" 2026 Mar 31 by Vim project: use shellescape for the K mapping
78

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

0 commit comments

Comments
 (0)