mirror of
https://github.com/Kyren223/eko.git
synced 2025-09-05 21:18:14 +00:00
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:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user