aboutsummaryrefslogtreecommitdiffstats
path: root/src/e_keys.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-04-25 20:20:20 +0200
committerJoe <rbo@gmx.us>2024-04-25 20:20:20 +0200
commitd5096d447b67cb30cbf242fe708a4b911d57344f (patch)
treea3cedc0f780e53f942004ee112b7194a2a62f1f1 /src/e_keys.go
parentok (diff)
downloadhardflip-d5096d447b67cb30cbf242fe708a4b911d57344f.tar.gz
hardflip-d5096d447b67cb30cbf242fe708a4b911d57344f.tar.bz2
hardflip-d5096d447b67cb30cbf242fe708a4b911d57344f.tar.xz
hardflip-d5096d447b67cb30cbf242fe708a4b911d57344f.tar.zst
hardflip-d5096d447b67cb30cbf242fe708a4b911d57344f.zip
qwe
Diffstat (limited to '')
-rw-r--r--src/e_keys.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/e_keys.go b/src/e_keys.go
index c4c16ff..b418bbc 100644
--- a/src/e_keys.go
+++ b/src/e_keys.go
@@ -172,6 +172,7 @@ func e_normal_events(data *HardData, ui *HardUI, event tcell.EventKey) bool {
} else if event.Rune() == 'a' ||
event.Rune() == 'i' {
ui.mode = INSERT_MODE
+ ui.insert_method = INSERT_ADD
ui.insert_sel = 0
ui.insert_sel_ok = false
} else if event.Rune() == 'e' &&
@@ -182,6 +183,7 @@ func e_normal_events(data *HardData, ui *HardUI, event tcell.EventKey) bool {
e_set_protocol_max(data, data.insert)
e_set_drive_keys(data)
ui.mode = INSERT_MODE
+ ui.insert_method = INSERT_EDIT
ui.insert_sel = 0
ui.insert_sel_ok = false
} else if event.Key() == tcell.KeyCtrlR {
@@ -192,6 +194,7 @@ func e_normal_events(data *HardData, ui *HardUI, event tcell.EventKey) bool {
} else if event.Rune() == 'y' &&
(data.litems.curr == nil ||
data.litems.curr.is_dir() == true) == false {
+ ui.insert_method = INSERT_COPY
data.yank = data.litems.curr
ui.msg_buff = "yanked " + data.yank.Host.Name +
" (" + data.yank.Host.parent.path() + data.yank.Host.filename + ")"