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
commit80e1dc0b0b8a358a1a9a04802d37ef55821e0ed9 (patch)
tree8be2d2ab57e42fae8335717e2cebea933e8dfa43 /src/e_keys.go
parentmove was fast too (diff)
downloadhardflip-80e1dc0b0b8a358a1a9a04802d37ef55821e0ed9.tar.gz
hardflip-80e1dc0b0b8a358a1a9a04802d37ef55821e0ed9.tar.bz2
hardflip-80e1dc0b0b8a358a1a9a04802d37ef55821e0ed9.tar.xz
hardflip-80e1dc0b0b8a358a1a9a04802d37ef55821e0ed9.tar.zst
hardflip-80e1dc0b0b8a358a1a9a04802d37ef55821e0ed9.zip
red
Diffstat (limited to '')
-rw-r--r--src/e_keys.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/e_keys.go b/src/e_keys.go
index d21b299..20552d7 100644
--- a/src/e_keys.go
+++ b/src/e_keys.go
@@ -224,7 +224,9 @@ func e_normal_events(data *HardData, ui *HardUI, event tcell.EventKey) bool {
} else {
new_host.parent = data.litems.curr.Host.parent
}
- i_insert_host(data, &new_host)
+ if err := i_insert_host(data, &new_host); err != nil {
+ return true
+ }
if ui.insert_method == INSERT_MOVE {
data.litems.del(data.yank)
file_path := data.data_dir + data.yank.Host.parent.path() +