aboutsummaryrefslogtreecommitdiffstats
path: root/src/e_events.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-04-24 20:20:20 +0200
committerJoe <rbo@gmx.us>2024-04-24 20:20:20 +0200
commit26b787e8781f8e0ff7638a8a3e2c4af4d660cdfb (patch)
treef6754c158826a4b383c67bc5a01b8584c4c8ae8e /src/e_events.go
parentgo (diff)
downloadhardflip-26b787e8781f8e0ff7638a8a3e2c4af4d660cdfb.tar.gz
hardflip-26b787e8781f8e0ff7638a8a3e2c4af4d660cdfb.tar.bz2
hardflip-26b787e8781f8e0ff7638a8a3e2c4af4d660cdfb.tar.xz
hardflip-26b787e8781f8e0ff7638a8a3e2c4af4d660cdfb.tar.zst
hardflip-26b787e8781f8e0ff7638a8a3e2c4af4d660cdfb.zip
ok cool now
Diffstat (limited to 'src/e_events.go')
-rw-r--r--src/e_events.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/e_events.go b/src/e_events.go
index eb17250..8f631a6 100644
--- a/src/e_events.go
+++ b/src/e_events.go
@@ -353,9 +353,9 @@ func e_set_protocol_defaults(data *HardData, in *HostNode) {
}
}
-func e_paste_prepare_item(yank *ItemsNode) ItemsNode {
- new_host := &HostNode{}
- *new_host = *yank.Host
+func e_paste_prepare_item(yank *ItemsNode) HostNode {
+ new_host := HostNode{}
+ new_host = *yank.Host
new_host.Name += " (copy)"
if yank.Host.Drive != nil {
new_host.Drive = make(map[string]string, len(yank.Host.Drive))
@@ -367,12 +367,12 @@ func e_paste_prepare_item(yank *ItemsNode) ItemsNode {
new_host.Shell = make([]string, len(yank.Host.Shell))
copy(new_host.Shell, yank.Host.Shell)
}
- return ItemsNode{Dirs: nil, Host: new_host}
+ return new_host
}
-func e_paste_item(litems *ItemsList, item ItemsNode) {
- curr := litems.curr
-}
+// func e_paste_item(litems *ItemsList, item ItemsNode) {
+// curr := litems.curr
+// }
// screen events such as keypresses
func e_events(data *HardData, fp [MODE_MAX + 1]key_event_mode_func) {