diff options
| author | Christian Brabandt <cb@256bit.org> | 2026-04-01 08:10:15 +0000 |
|---|---|---|
| committer | Christian Brabandt <cb@256bit.org> | 2026-04-01 08:10:15 +0000 |
| commit | 82ebaa79b03f0f9d66eeba51570c62a83096108f (patch) | |
| tree | 903486e6ab078f228e60a0c8b208c3749647f6dd | |
| parent | 8c8772c6b321d4955c8f09926e3eda2b4cd83680 (diff) | |
| download | Project-Tick-82ebaa79b03f0f9d66eeba51570c62a83096108f.tar.gz Project-Tick-82ebaa79b03f0f9d66eeba51570c62a83096108f.zip | |
runtime(racket): Make visual K mapping more robust for shell injection
fyi @benknoble
Signed-off-by: Christian Brabandt <cb@256bit.org>
| -rw-r--r-- | runtime/ftplugin/racket.vim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/ftplugin/racket.vim b/runtime/ftplugin/racket.vim index 14a98ab790..000f0ea3b3 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 |
