aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorhokorobi2024-10-20 15:08:48 +0900
committerhokorobi2024-10-20 15:08:48 +0900
commit5bd307b8306755ea86a85c36e37b4132975d4aae (patch)
tree4307e63ce5bbc3ea43b1b4bc5710c711b379fea9
parent856ec96fab7c736052c93b9be9361e223021c671 (diff)
downloadctrlp.vim-5bd307b8306755ea86a85c36e37b4132975d4aae.tar.gz

Reflect “ctrlpmatchcurrent_file” in CtrlPMRUFiles

-rw-r--r--autoload/ctrlp.vim5
-rw-r--r--doc/ctrlp.txt3
2 files changed, 6 insertions, 2 deletions
diff --git a/autoload/ctrlp.vim b/autoload/ctrlp.vim
index 600ffa2..80dc9e4 100644
--- a/autoload/ctrlp.vim
+++ b/autoload/ctrlp.vim
@@ -641,6 +641,9 @@ fu! ctrlp#buffers(...)
retu ids
el
let bufs = [[], []]
+ if s:matcher != {} && !s:matchcrfile
+ call filter(ids, 'v:val != s:crbufnr')
+ en
for id in ids
let bname = bufname(id)
let ebname = bname == ''
@@ -2179,7 +2182,7 @@ fu! s:isabs(path)
endf
fu! s:bufnrfilpath(line)
- if s:isabs(a:line) || a:line =~ '^\~[/\\]' || a:line =~ '^\w\+:\/\/'
+ if s:isabs(a:line) || a:line =~ '^\~[/\\]' || a:line =~ '^\w\+:\/\/'
let filpath = a:line
el
let filpath = s:dyncwd.s:lash().a:line
diff --git a/doc/ctrlp.txt b/doc/ctrlp.txt
index 6ee0d33..571d91c 100644
--- a/doc/ctrlp.txt
+++ b/doc/ctrlp.txt
@@ -449,7 +449,8 @@ Includes the current file in the match entries: >
By default, the current file is excluded from the list.
-Note: does not apply when |g:ctrlp_match_func| is used.
+Note: With the exception of |:CtrlPMRU|, does not apply when
+|g:ctrlp_match_func| is used.
*'g:ctrlp_types'*
Set this to list of names to customize core types: >