Closed scrawld closed 4 months ago
Thank you for the bug report. Interestingly, I can only duplicate this if there is either whitespace and only whitespace following the chinese character or the newline immediately follows the chinese character.
I'll need to dig in later to determine if this is a problem in vim-go specifically or if it's a bug in gopls
. I suspect the problem is vim-go
.
Thank you for your reply. I also suspect it is a bug in vim-go
, because it is normal for me to execute go fmt
in the terminal.
What did you do? (required: The issue will be closed when not provided)
Execution: GoFmt changes the Chinese at the end to
After executing: GoFmt it becomes
What did you expect to happen?
Delete the extra blank lines and do not change the Chinese at the end.
What happened instead?
Changed the 中 into
Configuration (MUST fill this out):
vim-go version: VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Jun 22 2023 04:08:04)
vimrc
you used to reproduce:vimrc
```vim call plug#begin() Plug 'fatih/vim-go', {'do': ':GoUpdateBinaries'} " Go 插件 首次安装执行 :GoInstallBinaries 该命令将 go install 所有必需的二进制文件 call plug#end() let g:go_fmt_autosave = 0 ```Vim version (first three lines from
:version
):VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Jun 22 2023 04:08:04) Included patches: 1-3995, 4563, 4646, 4774, 4895, 4899, 4901, 4919 Modified by team+vim@tracker.debian.org
Go version (
go version
):go version go1.21.3 linux/amd64
Go environment
go env
Output:gopls version
gopls version
Output:vim-go configuration:
vim-go configuration
filetype detection configuration:
filetype detection