From 72578a19bf46b6e0519c3bbd5940e229a1cf5605 Mon Sep 17 00:00:00 2001 From: Joe Date: Thu, 25 Apr 2024 20:20:20 +0200 Subject: ok --- src/e_events.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/e_events.go') diff --git a/src/e_events.go b/src/e_events.go index 673fc1a..60f7db9 100644 --- a/src/e_events.go +++ b/src/e_events.go @@ -316,6 +316,16 @@ func e_mkdir(data *HardData, ui *HardUI) { } } +func e_rename(data *HardData, ui *HardUI) { + if len(ui.buff) == 0 || + data.litems.curr == nil || data.litems.curr.is_dir() == true { + return + } + data.litems.curr.Host.Name = ui.buff + // ui.insert_method = INSERT_MOVE + // i_insert_host(data, new_host) +} + func e_set_drive_keys(data *HardData) { data.insert.drive_keys = nil for key := range data.insert.Drive { -- cgit v1.2.3