fatih / vim-go

Go development plugin for Vim
https://www.patreon.com/bhcleek
Other
15.9k stars 1.45k forks source link

Code folding is broken for single-line varconst declarations #3576

Closed dunric closed 10 months ago

dunric commented 10 months ago

environment: Vim 9.0, Linux x86_64

description: In case of single-line declarations of var or const blocks, invocation of code folding improperly swallows unrelated following lines, usually all, to the end of file. Declarations may be empty, non-empty, with a comment - it does not matter.

expected behavior: single-line declarations are unaffected with code folding and definitely should not fold unrelated lines which follow

how to replicate the issue: