mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-29 00:06:29 +00:00
[vim] Temporarily disable &autochdir when opening files (#306)
This commit is contained in:
parent
02bd2d2adf
commit
0b4542fcdf
@ -368,9 +368,15 @@ function! s:cmd_callback(lines) abort
|
|||||||
endif
|
endif
|
||||||
let key = remove(a:lines, 0)
|
let key = remove(a:lines, 0)
|
||||||
let cmd = get(s:action, key, 'e')
|
let cmd = get(s:action, key, 'e')
|
||||||
for item in a:lines
|
try
|
||||||
execute cmd s:escape(item)
|
let autochdir = &autochdir
|
||||||
endfor
|
set noautochdir
|
||||||
|
for item in a:lines
|
||||||
|
execute cmd s:escape(item)
|
||||||
|
endfor
|
||||||
|
finally
|
||||||
|
let &autochdir = autochdir
|
||||||
|
endtry
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:cmd(bang, ...) abort
|
function! s:cmd(bang, ...) abort
|
||||||
|
Loading…
Reference in New Issue
Block a user