浏览代码

Use global fzf window layout for FZFMru command (#55)

It seems odd to load FZFMru with a different layout to other FZF
commands, so remove the down option override when calling fzf#wrap.

I think I understand why this was added, it makes the FZFMru window the
same layout as other MRU windows (when not set to use current window),
but this really isn't an MRU window, it's a FZF window with MRU files.
Mark Woods 3 年之前
父节点
当前提交
2698dc2622
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      plugin/mru.vim

+ 1 - 2
plugin/mru.vim

@@ -1074,8 +1074,7 @@ func s:MRU_FZF_Run() abort
 
   call fzf#run(fzf#wrap({'source' : s:MRU_files,
     \ 'options' : '--no-sort',
-    \ 'sink' : function('s:MRU_FZF_EditFile'),
-    \ 'down' : g:MRU_Window_Height}, 0))
+    \ 'sink' : function('s:MRU_FZF_EditFile')}, 0))
 endfunc
 command! -nargs=0 FZFMru call s:MRU_FZF_Run()