mirror of
https://github.com/zoriya/bubbles.git
synced 2026-08-16 01:43:21 +00:00
chore: fix lint warning
This commit is contained in:
@@ -653,7 +653,7 @@ func (m *Model) deleteWordLeft() {
|
|||||||
// Linter note: it's critical that we acquire the initial cursor position
|
// Linter note: it's critical that we acquire the initial cursor position
|
||||||
// here prior to altering it via SetCursor() below. As such, moving this
|
// here prior to altering it via SetCursor() below. As such, moving this
|
||||||
// call into the corresponding if clause does not apply here.
|
// call into the corresponding if clause does not apply here.
|
||||||
oldCol := m.col //nolint:ifshort
|
oldCol := m.col
|
||||||
|
|
||||||
m.SetCursor(m.col - 1)
|
m.SetCursor(m.col - 1)
|
||||||
for unicode.IsSpace(m.value[m.row][m.col]) {
|
for unicode.IsSpace(m.value[m.row][m.col]) {
|
||||||
|
|||||||
@@ -400,7 +400,7 @@ func (m *Model) deleteWordBackward() {
|
|||||||
// Linter note: it's critical that we acquire the initial cursor position
|
// Linter note: it's critical that we acquire the initial cursor position
|
||||||
// here prior to altering it via SetCursor() below. As such, moving this
|
// here prior to altering it via SetCursor() below. As such, moving this
|
||||||
// call into the corresponding if clause does not apply here.
|
// call into the corresponding if clause does not apply here.
|
||||||
oldPos := m.pos //nolint:ifshort
|
oldPos := m.pos
|
||||||
|
|
||||||
m.SetCursor(m.pos - 1)
|
m.SetCursor(m.pos - 1)
|
||||||
for unicode.IsSpace(m.value[m.pos]) {
|
for unicode.IsSpace(m.value[m.pos]) {
|
||||||
|
|||||||
Reference in New Issue
Block a user