diff --git a/textarea/textarea.go b/textarea/textarea.go index d82ae97..61c5537 100644 --- a/textarea/textarea.go +++ b/textarea/textarea.go @@ -653,7 +653,7 @@ func (m *Model) deleteWordLeft() { // Linter note: it's critical that we acquire the initial cursor position // here prior to altering it via SetCursor() below. As such, moving this // call into the corresponding if clause does not apply here. - oldCol := m.col //nolint:ifshort + oldCol := m.col m.SetCursor(m.col - 1) for unicode.IsSpace(m.value[m.row][m.col]) { diff --git a/textinput/textinput.go b/textinput/textinput.go index 84cbbc9..9c6666e 100644 --- a/textinput/textinput.go +++ b/textinput/textinput.go @@ -400,7 +400,7 @@ func (m *Model) deleteWordBackward() { // Linter note: it's critical that we acquire the initial cursor position // here prior to altering it via SetCursor() below. As such, moving this // call into the corresponding if clause does not apply here. - oldPos := m.pos //nolint:ifshort + oldPos := m.pos m.SetCursor(m.pos - 1) for unicode.IsSpace(m.value[m.pos]) {