Procházet zdrojové kódy

FZF should respect the sorting of the MRU file (sorted by recency) while typing and refreshing the query results (#48)

* FZF should respect the sorting of the MRU file (sorted by recency) in its results while typing.

* Fix tab/spaces.
ranelpadon před 4 roky
rodič
revize
a2eb43d40b
1 změnil soubory, kde provedl 3 přidání a 2 odebrání
  1. 3 2
      plugin/mru.vim

+ 3 - 2
plugin/mru.vim

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