aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorIngo Meyer2021-12-03 17:13:29 +0100
committerIngo Meyer2021-12-03 17:13:29 +0100
commit740b8811790415f921f66190b152cc1f761bfe44 (patch)
tree6642017c18877a390b7e2efa27b6472da0b10f0d
parentfff74986c5439015cf5cc69cf2c6390a40fdd79f (diff)
downloadctrlp.vim-740b8811790415f921f66190b152cc1f761bfe44.tar.gz

Fix broken buffertags

This commit fixes GitHub issue #583.

-rw-r--r--autoload/ctrlp/buffertag.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/ctrlp/buffertag.vim b/autoload/ctrlp/buffertag.vim
index fa52b58..4f75e6d 100644
--- a/autoload/ctrlp/buffertag.vim
+++ b/autoload/ctrlp/buffertag.vim
@@ -253,7 +253,7 @@ endf
fu! ctrlp#buffertag#accept(mode, str)
let vals = matchlist(a:str,
- \ '\v^[^\t]+\t+[^\t|]+\|(\d+)\:[^\t|]+\|(\d+)\|\s(.+)$')
+ \ '\v^[^\t]+\t+[^\t|]+\|(\d+)\:[^\t|]+\|(\d+)%(\|[^\t|]+)?\|\s(.+)$')
let bufnr = str2nr(get(vals, 1))
if bufnr
cal ctrlp#acceptfile(a:mode, bufnr)