chore: fix lint warning

This commit is contained in:
Andrey Nering
2025-04-10 10:33:29 -03:00
parent 8b55efb294
commit 3e2a8caedb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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]) {