File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,6 @@ func NewBufferReader(v *Nvim, b Buffer) io.Reader {
20
20
return & bufferReader {v : v , b : b }
21
21
}
22
22
23
- var lineEnd = []byte {'\n' }
24
-
25
23
// Read implements io.Reader.
26
24
func (r * bufferReader ) Read (p []byte ) (n int , err error ) {
27
25
if r .err != nil {
Original file line number Diff line number Diff line change @@ -55,8 +55,7 @@ type CommandCompletionArgs struct {
55
55
56
56
// CursorPos returns the cursor position.
57
57
func (a * CommandCompletionArgs ) CursorPos () int {
58
- n := a .CursorPosString
59
- return n
58
+ return a .CursorPosString
60
59
}
61
60
62
61
// Mode represents a Nvim's current mode.
@@ -194,7 +193,7 @@ type ClientMethod struct {
194
193
Async bool `msgpack:"async"`
195
194
196
195
// NArgs is the number of method arguments.
197
- NArgs ClientMethodNArgs `msgpack:"nargs"`
196
+ NArgs ClientMethodNArgs
198
197
}
199
198
200
199
// ClientMethodNArgs is the number of arguments. Could be a single integer or an array two integers, minimum and maximum inclusive.
You can’t perform that action at this time.
0 commit comments