summaryrefslogtreecommitdiff
path: root/internal/client/ui/viminput/viminput.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/client/ui/viminput/viminput.go')
-rw-r--r--internal/client/ui/viminput/viminput.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/internal/client/ui/viminput/viminput.go b/internal/client/ui/viminput/viminput.go
index a24eef8..f9c0319 100644
--- a/internal/client/ui/viminput/viminput.go
+++ b/internal/client/ui/viminput/viminput.go
@@ -1703,6 +1703,13 @@ func (m *Model) handleVisualModeKeys(key tea.KeyMsg) {
return
}
+ if motion == "V" {
+ m.SetCursorColumn(min(m.cursorColumn, len(m.lines[m.cursorLine])-1))
+ m.mode = VisualLineMode
+ m.count = NoCount
+ return
+ }
+
if motion != "x" && motion != "d" && motion != "c" && motion != "y" &&
motion != "p" && motion != "P" {
return
@@ -1874,6 +1881,12 @@ func (m *Model) handleVisualLineModeKeys(key tea.KeyMsg) {
return
}
+ if motion == "v" {
+ m.mode = VisualMode
+ m.count = NoCount
+ return
+ }
+
if motion != "x" && motion != "d" && motion != "c" && motion != "y" &&
motion != "p" && motion != "P" {
return