Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions nvim/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package nvim

import (
"io"
"strconv"
)

// QuickfixError represents an item in a quickfix list.
Expand Down Expand Up @@ -55,12 +54,12 @@ type CommandCompletionArgs struct {

// CursorPosString is decimal representation of the cursor position in
// bytes.
CursorPosString string
CursorPosString int
}

// CursorPos returns the cursor position.
func (a *CommandCompletionArgs) CursorPos() int {
n, _ := strconv.Atoi(a.CursorPosString)
n := a.CursorPosString
return n
}

Expand Down