liuchengxu / vista.vim

:cactus: Viewer & Finder for LSP symbols and tags
https://liuchengxu.github.io/vista.vim
MIT License
1.88k stars 89 forks source link

fzf: fix line number extraction #442

Closed 110y closed 1 year ago

110y commented 1 year ago

With a language like Go, which may have square brackets in a tag (e.g. in Go, it may have (*MyType[T]).MyMethod in a tag if we use Generics), current line number extraction logic raise an error since it's splitting a line with a square bracket like split(a:line, '[')[0]). This PR tries to fix this kind of error.

liuchengxu commented 1 year ago

Sorry for the delay, thank you!

110y commented 1 year ago

@liuchengxu

No problem! Thank you for your review 🎉