diff options
| author | Kyren223 <Kyren223@proton.me> | 2025-02-03 19:38:43 +0200 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2025-02-03 19:38:43 +0200 |
| commit | e3b22023d835081f2b19dae6dcb78c9603cc7cb7 (patch) | |
| tree | 1d7d5104fc6bb22e8ef970de2e559e87005379bf | |
| parent | 7d9a1adb1ec79665dae74773fc5d18aa97893b6d (diff) | |
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
| -rw-r--r-- | internal/client/ui/viminput/viminput.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/client/ui/viminput/viminput.go b/internal/client/ui/viminput/viminput.go index ac322f6..745a2d8 100644 --- a/internal/client/ui/viminput/viminput.go +++ b/internal/client/ui/viminput/viminput.go @@ -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 { |
