Skip to content

Commit

Permalink
Fix broken buffertags
Browse files Browse the repository at this point in the history
This commit fixes GitHub issue ctrlpvim#583.
  • Loading branch information
IngoMeyer441 committed Dec 3, 2021
1 parent fff7498 commit 740b881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/ctrlp/buffertag.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 740b881

Please sign in to comment.