Fixed a bug in viminput where trying to delete in visual mode up to the

end of the line and that line is the last line, it wouldn't delete
anything
This commit is contained in:
2025-02-03 19:38:43 +02:00
parent 7d9a1adb1e
commit e3b22023d8

View File

@@ -1880,6 +1880,8 @@ func (m *Model) handleVisualModeKeys(key tea.KeyMsg) {
line = append(line, m.lines[m.cursorLine+1]...)
m.lines[m.cursorLine] = line
m.lines = slices.Delete(m.lines, m.cursorLine+1, m.cursorLine+2)
} else {
m.lines[m.cursorLine] = line
}
m.SetCursorColumn(lowerCol)
} else {