浏览代码

Migrate MRU sorting to new MRU algorithm.

Michael Henry 10 月之前
父节点
当前提交
6c176d4593
共有 1 个文件被更改,包括 1 次插入4 次删除
  1. 1 4
      plugin/bufexplorer.vim

+ 1 - 4
plugin/bufexplorer.vim

@@ -1505,10 +1505,7 @@ endfunction
 function! s:Key_mru(line)
     let _bufnr = str2nr(a:line)
     let buf = s:raw_buffer_listing[_bufnr]
-    let pos = index(s:MRUList, _bufnr)
-    if pos < 0
-        let pos = 0
-    endif
+    let pos = s:MRUOrderForBuf(_bufnr)
     return [printf('%9d', pos), buf.fullname]
 endfunction