From 374f06ffd8b890809289911334d8f0b0b15603bc Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Tue, 31 Mar 2026 15:38:30 +0000 Subject: [PATCH] runtime(racket): Use shellescape() to harden the K mapping MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fyi: @benknoble Co-authored-by: MichaƂ Majchrowicz Signed-off-by: Christian Brabandt --- runtime/ftplugin/racket.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runtime/ftplugin/racket.vim b/runtime/ftplugin/racket.vim index b8004a93af..14a98ab790 100644 --- a/runtime/ftplugin/racket.vim +++ b/runtime/ftplugin/racket.vim @@ -4,6 +4,7 @@ " Previous Maintainer: Will Langstroth " URL: https://github.com/benknoble/vim-racket " Last Change: 2025 Aug 09 +" 2026 Mar 31 by Vim project: use shellescape for the K mapping if exists("b:did_ftplugin") finish @@ -51,7 +52,7 @@ if !exists("no_plugin_maps") && !exists("no_racket_maps") try let l:old_a = @a normal! gv"ay - call system("raco docs '". @a . "'") + call system("raco docs '". shellescape(@a) . "'") redraw! return @a finally