We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a1f510 commit cd1641cCopy full SHA for cd1641c
autoload/go/lsp.vim
@@ -1536,7 +1536,7 @@ function s:applyTextEdits(msg) abort
1536
" TODO(bc): deal with folds
1537
1538
call s:deleteline(l:startline, l:endline)
1539
- for l:line in split(l:text, "\n")
+ for l:line in split(l:text, "\n", 1)
1540
call append(l:startline-1, l:line)
1541
let l:startline += 1
1542
endfor
autoload/go/test-fixtures/fmt/src/imports/goimports.go
@@ -1,13 +1,8 @@
1
package main
2
-
3
-import (
4
- "fmt"
5
-)
6
7
func Foo(log *logging.TestLogger) {
8
-log.Debug("vim-go")
+ log.Debug("vim-go")
9
}
10
11
func main() {
12
- fmt.Println("vim-go")
+ fmt.Println("vim-go")
13
0 commit comments