mirror of
https://github.com/junegunn/fzf.vim.git
synced 2026-10-04 19:28:53 +08:00
Say what a lone address fragment does
The comment read as if every fragment were dropped. One with nothing before it cannot be told apart from a helptags address, so it goes through as is.
This commit is contained in:
1 file changed
+5
-4
@@ -554,10 +554,11 @@ endfunction
|
|||||||
" then not run.
|
" then not run.
|
||||||
"
|
"
|
||||||
" A pattern holding a tab reaches :BTags cut short, since it reads the field on
|
" A pattern holding a tab reaches :BTags cut short, since it reads the field on
|
||||||
" its own. Such a fragment matches the wrong line, so keep only the parts before
|
" its own. Where earlier parts parsed, keep those and drop the fragment, since a
|
||||||
" it, and accept an unterminated pattern alone, which is the whole address in a
|
" line number beats half a pattern. A fragment on its own is indistinguishable
|
||||||
" helptags file. Running to the end of the line, it takes any '|' or ';' with it,
|
" from a helptags address such as '/*:Ag*', so it goes through unterminated, the
|
||||||
" so it cannot chain a command either.
|
" way a builtin tag jump takes the same field. Running to the end of the line, it
|
||||||
|
" takes any '|' or ';' with it, so it cannot chain a command either.
|
||||||
let s:tag_address_part = '\%(\d\+\|/\%(\\.\|[^/\\]\)*/\|?\%(\\.\|[^?\\]\)*?\)'
|
let s:tag_address_part = '\%(\d\+\|/\%(\\.\|[^/\\]\)*/\|?\%(\\.\|[^?\\]\)*?\)'
|
||||||
let s:tag_address_open = '\%(/\%(\\.\|[^/\\]\)*\|?\%(\\.\|[^?\\]\)*\)'
|
let s:tag_address_open = '\%(/\%(\\.\|[^/\\]\)*\|?\%(\\.\|[^?\\]\)*\)'
|
||||||
function! s:tag_address(rest)
|
function! s:tag_address(rest)
|
||||||
|
|||||||
Reference in new issue
Block a user