mirror of
https://github.com/neovim/neovim.git
synced 2026-08-29 02:21:51 +00:00
vim-patch:82ebaa7: runtime(racket): Make visual K mapping more robust for shell injection (#38677)
fyi @benknoble82ebaa79b0Co-authored-by: Christian Brabandt <cb@256bit.org> (cherry picked from commita0fcf32ad5)
This commit is contained in:
committed by
github-actions[bot]
parent
04fabbf32d
commit
10bd554c0f
@@ -5,6 +5,7 @@
|
|||||||
" URL: https://github.com/benknoble/vim-racket
|
" URL: https://github.com/benknoble/vim-racket
|
||||||
" Last Change: 2025 Aug 09
|
" Last Change: 2025 Aug 09
|
||||||
" 2026 Mar 31 by Vim project: use shellescape for the K mapping
|
" 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")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
@@ -52,7 +53,7 @@ if !exists("no_plugin_maps") && !exists("no_racket_maps")
|
|||||||
try
|
try
|
||||||
let l:old_a = @a
|
let l:old_a = @a
|
||||||
normal! gv"ay
|
normal! gv"ay
|
||||||
call system("raco docs '". shellescape(@a) . "'")
|
call system("raco docs -- ". string(shellescape(@a)))
|
||||||
redraw!
|
redraw!
|
||||||
return @a
|
return @a
|
||||||
finally
|
finally
|
||||||
|
|||||||
Reference in New Issue
Block a user