Skip to content

Commit dcba22d

Browse files
authored
remove obstructive FZF sink (#68)
It didn't do much but disabling the FZF key binds for opening the file in a split or tab, for example see `:help g:fzf_action`
1 parent b6718c9 commit dcba22d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

plugin/mru.vim

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,9 +1104,6 @@ endif
11041104
command! -nargs=0 MruRefresh call s:MRU_Refresh()
11051105

11061106
" FZF (fuzzy finder) integration {{{1
1107-
func s:MRU_FZF_EditFile(fname) abort
1108-
call s:MRU_Window_Edit_File(a:fname, 0, 'edit', 'useopen')
1109-
endfunc
11101107

11111108
func s:MRU_FZF_Run(bang) abort
11121109
if !exists('*fzf#run')
@@ -1118,8 +1115,7 @@ func s:MRU_FZF_Run(bang) abort
11181115
call s:MRU_LoadList()
11191116

11201117
let dict = {'source' : s:MRU_files,
1121-
\ 'options' : '--no-sort --prompt="MRU> " ' .. $FZF_DEFAULT_OPTS,
1122-
\ 'sink' : function('s:MRU_FZF_EditFile')}
1118+
\ 'options' : '--no-sort --prompt="MRU> " ' .. $FZF_DEFAULT_OPTS}
11231119
if g:MRU_FZF_Preview && exists('*fzf#complete') " fzf.vim plugin present
11241120
call fzf#vim#files('', fzf#vim#with_preview(dict), a:bang)
11251121
else

0 commit comments

Comments
 (0)