From 80e1dc0b0b8a358a1a9a04802d37ef55821e0ed9 Mon Sep 17 00:00:00 2001 From: Joe Date: Thu, 25 Apr 2024 20:20:20 +0200 Subject: red --- src/e_keys.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/e_keys.go') 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() + -- cgit v1.2.3