From 0a3aca457c3c750340dcc0aa072133c3884bb773 Mon Sep 17 00:00:00 2001 From: Joe Date: Mon, 29 Apr 2024 20:20:20 +0200 Subject: quick weird bugfix --- src/e_keys.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/e_keys.go') diff --git a/src/e_keys.go b/src/e_keys.go index 621b9ea..8f4c91b 100644 --- a/src/e_keys.go +++ b/src/e_keys.go @@ -561,12 +561,14 @@ func e_insert_events(data *HardData, ui *HardUI, event tcell.EventKey) bool { ui.s.HideCursor() return true } else { + filename := data.insert.filename name := data.insert.Name parent := data.insert.parent data.insert = nil data.insert = &HostNode{} data.insert.Name = name data.insert.parent = parent + data.insert.filename = filename data.insert.Protocol = int8(event.Rune() - 48 - 1) ui.insert_sel_ok = false ui.s.HideCursor() -- cgit v1.2.3