diff options
author | Joe <rbo@gmx.us> | 2024-04-25 20:20:20 +0200 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-04-25 20:20:20 +0200 |
commit | 80e1dc0b0b8a358a1a9a04802d37ef55821e0ed9 (patch) | |
tree | 8be2d2ab57e42fae8335717e2cebea933e8dfa43 /src/e_keys.go | |
parent | move was fast too (diff) | |
download | hardflip-80e1dc0b0b8a358a1a9a04802d37ef55821e0ed9.tar.gz hardflip-80e1dc0b0b8a358a1a9a04802d37ef55821e0ed9.tar.bz2 hardflip-80e1dc0b0b8a358a1a9a04802d37ef55821e0ed9.tar.xz hardflip-80e1dc0b0b8a358a1a9a04802d37ef55821e0ed9.tar.zst hardflip-80e1dc0b0b8a358a1a9a04802d37ef55821e0ed9.zip |
red
Diffstat (limited to 'src/e_keys.go')
-rw-r--r-- | src/e_keys.go | 4 |
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() + |