Skip to content
Snippets Groups Projects
Unverified Commit 76d3f6d2 authored by Junegunn Choi's avatar Junegunn Choi
Browse files

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

- call fzf#run({'source': "echo '!'"})
- call fzf#run({'source': "echo '!'", 'down': '40%'})

Close https://github.com/junegunn/fzf.vim/issues/315
parent e87a85a1
No related branches found
No related tags found
No related merge requests found
......@@ -451,7 +451,7 @@ function! s:execute(dict, command, use_height, temps) abort
let stdin = has_key(a:dict, 'source') ? '' : '< /dev/tty'
call system(printf('tput cup %d > /dev/tty; tput cnorm > /dev/tty; %s %s 2> /dev/tty', &lines, command, stdin))
else
execute 'silent !'.command
execute 'silent !'.escape(command, '!')
endif
let exit_status = v:shell_error
redraw!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment