Skip to content

Commit 0cb63b6

Browse files
committed
Merge branch 'master' into core-types
2 parents b07f1bf + 35fac96 commit 0cb63b6

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

autoload/ctrlp.vim

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1374,7 +1374,16 @@ endf
13741374
fu! s:compmreb(...)
13751375
" By last entered time (bufnr)
13761376
let [id1, id2] = [index(s:mrbs, a:1), index(s:mrbs, a:2)]
1377-
retu id1 == id2 ? 0 : id1 > id2 ? 1 : -1
1377+
if id1 == id2
1378+
return 0
1379+
endif
1380+
if id1 < 0
1381+
return 1
1382+
endif
1383+
if id2 < 0
1384+
return -1
1385+
endif
1386+
return id1 > id2 ? 1 : -1
13781387
endf
13791388

13801389
fu! s:compmref(...)

0 commit comments

Comments
 (0)