aboutsummaryrefslogtreecommitdiffstats
path: root/src/e_keys.go
diff options
context:
space:
mode:
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() +