aboutsummaryrefslogtreecommitdiffstats
path: root/src/e_events.go
diff options
context:
space:
mode:
authorjoe <rbo@gmx.us>2025-08-26 19:24:18 +0200
committerjoe <rbo@gmx.us>2025-08-26 19:24:18 +0200
commit93aed08e521c7d96d3c53f207fb650b449cdb12c (patch)
treed3bf429138004692a36a4a47df137093f1393fc2 /src/e_events.go
parentfixed (diff)
downloadhardflip-93aed08e521c7d96d3c53f207fb650b449cdb12c.tar.gz
hardflip-93aed08e521c7d96d3c53f207fb650b449cdb12c.tar.bz2
hardflip-93aed08e521c7d96d3c53f207fb650b449cdb12c.tar.xz
hardflip-93aed08e521c7d96d3c53f207fb650b449cdb12c.tar.zst
hardflip-93aed08e521c7d96d3c53f207fb650b449cdb12c.zip
fixed all errs and some other things
Diffstat (limited to 'src/e_events.go')
-rw-r--r--src/e_events.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/e_events.go b/src/e_events.go
index 2889053..87a55f3 100644
--- a/src/e_events.go
+++ b/src/e_events.go
@@ -43,7 +43,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*
* hardflip: src/e_events.go
- * Thu Apr 11 16:00:44 2024
+ * Tue, 26 Aug 2025 19:02:24 +0200
* Joe
*
* events in the code
@@ -52,6 +52,7 @@
package main
import (
+ "maps"
"os"
"github.com/gdamore/tcell/v2"
@@ -98,7 +99,7 @@ func e_unfold_dir(data *HardData, item *ItemsNode) {
return
}
// single empty dir
- if start == item && end == end { // HACK: i forgot why end == end
+ if start == item {
e_set_unfold(data, item)
return
}
@@ -545,9 +546,7 @@ func e_deep_copy_host(base *HostNode) HostNode {
new_host = *base
if base.Drive != nil {
new_host.Drive = make(map[string]string, len(base.Drive))
- for k, v := range base.Drive {
- new_host.Drive[k] = v
- }
+ maps.Copy(new_host.Drive, base.Drive)
}
if base.Shell != nil {
new_host.Shell = make([]string, len(base.Shell))