diff options
author | charlton1 <50023802+charlton1@users.noreply.github.com> | 2019-07-08 22:08:36 -0400 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2019-07-09 11:08:36 +0900 |
commit | c1dbc800e587471a8c34a0e3a4a907aabc71cdd0 (patch) | |
tree | cad9f79b7c9752f9175be74d3dc848f0d6d47cf0 /plugin | |
parent | 951746297e26159cd45501030c56eca4bea4e277 (diff) |
[vim] Fix name-based colors for GVim/8.0 w/o builtin terminal (#1634)
(i.e. spawn xterm)
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/fzf.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim index 8f2bc26a..1d1910be 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -501,12 +501,12 @@ function! s:dopopd() endfunction function! s:xterm_launcher() - let fmt = 'xterm -T "[fzf]" -bg "\%s" -fg "\%s" -geometry %dx%d+%d+%d -e bash -ic %%s' + let fmt = 'xterm -T "[fzf]" -bg "%s" -fg "%s" -geometry %dx%d+%d+%d -e bash -ic %%s' if has('gui_macvim') let fmt .= '&& osascript -e "tell application \"MacVim\" to activate"' endif return printf(fmt, - \ synIDattr(hlID("Normal"), "bg"), synIDattr(hlID("Normal"), "fg"), + \ escape(synIDattr(hlID("Normal"), "bg"), '#'), escape(synIDattr(hlID("Normal"), "fg"), '#'), \ &columns, &lines/2, getwinposx(), getwinposy()) endfunction unlet! s:launcher |