From 8569c1257a75ebd944a993a53605e6c41fb67c0a Mon Sep 17 00:00:00 2001 From: Kien N Date: Fri, 9 Sep 2011 22:28:40 +0700 Subject: [PATCH] don't sort MRU files --- autoload/ctrlp.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/autoload/ctrlp.vim b/autoload/ctrlp.vim index 41122e9..7c8bd10 100644 --- a/autoload/ctrlp.vim +++ b/autoload/ctrlp.vim @@ -361,7 +361,9 @@ func! s:Renderer(lines) "{{{ " Output to buffer if len(nls) >= 1 setl cul - cal sort(nls, 's:compare') + if s:itemtype != 2 + cal sort(nls, 's:compare') + endif if s:mwreverse cal reverse(nls) endif