Skip to content
Myr

[vim] Escape ! when using :! to execute command

Before adoption: this commit came in with the history the project adopted, so no landing records it.

- call fzf#run({'source': "echo '!'"}) - call fzf#run({'source': "echo '!'", 'down': '40%'}) Close https://github.com/junegunn/fzf.vim/issues/315

authored by Junegunn Choi · committed by Junegunn Choi · parent e87a85a · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:plugin/fzf.vim+1 added-1 removed
449 unmodified lines
450 if a:use_height451 let stdin = has_key(a:dict, 'source') ? '' : '< /dev/tty'452 call system(printf('tput cup %d > /dev/tty; tput cnorm > /dev/tty; %s %s 2> /dev/tty', &lines, command, stdin))453 else454 execute 'silent !'.command454 execute 'silent !'.escape(command, '!')455 endif456 let exit_status = v:shell_error457 redraw!458 return s:exit_handler(exit_status, command) ? s:collect(a:temps) : []
222 unmodified lines