Skip to content

Commit 740b881

Browse files
committed
Fix broken buffertags
This commit fixes GitHub issue #583.
1 parent fff7498 commit 740b881

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

autoload/ctrlp/buffertag.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ endf
253253

254254
fu! ctrlp#buffertag#accept(mode, str)
255255
let vals = matchlist(a:str,
256-
\ '\v^[^\t]+\t+[^\t|]+\|(\d+)\:[^\t|]+\|(\d+)\|\s(.+)$')
256+
\ '\v^[^\t]+\t+[^\t|]+\|(\d+)\:[^\t|]+\|(\d+)%(\|[^\t|]+)?\|\s(.+)$')
257257
let bufnr = str2nr(get(vals, 1))
258258
if bufnr
259259
cal ctrlp#acceptfile(a:mode, bufnr)

0 commit comments

Comments
 (0)