diff options
Diffstat (limited to '')
-rw-r--r-- | src/e_keys.go | 2 |
1 files changed, 2 insertions, 0 deletions
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() |