aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-04-15 20:20:20 +0200
committerJoe <rbo@gmx.us>2024-04-15 20:20:20 +0200
commitd4ebd40aad196e0ba24938acd49560b6b867a316 (patch)
tree8d2afd9dc11b6f07025d5566fc6aebd43fe4b5c4
parentfuck this (diff)
downloadhardflip-d4ebd40aad196e0ba24938acd49560b6b867a316.tar.gz
hardflip-d4ebd40aad196e0ba24938acd49560b6b867a316.tar.bz2
hardflip-d4ebd40aad196e0ba24938acd49560b6b867a316.tar.xz
hardflip-d4ebd40aad196e0ba24938acd49560b6b867a316.tar.zst
hardflip-d4ebd40aad196e0ba24938acd49560b6b867a316.zip
fuck
-rw-r--r--src/i_events.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/i_events.go b/src/i_events.go
index b346b11..6a47074 100644
--- a/src/i_events.go
+++ b/src/i_events.go
@@ -52,6 +52,7 @@
package main
import (
+ "fmt"
"os"
"strconv"
"strings"
@@ -743,16 +744,21 @@ func i_events(data *HardData) {
ui.s.HideCursor()
break
}
- data.ui.insert_sel_ok = false
if len(data.insert.Drive) == 0 {
data.insert.Drive = make(map[string]string)
}
data.insert.Drive[ui.drives_buff] = ui.buff
i_set_drive_keys(data)
+ data.ui.insert_sel_ok = false
ui.drives_buff = ""
ui.buff = ""
ui.s.HideCursor()
// FIX: can't add shit anymore
+ // FIX: data good tho
+ ui.s.Fini()
+ fmt.Println(data.insert.Drive)
+ fmt.Println(data.insert.drive_keys)
+ os.Exit(0)
} else {
i_readline(event, &data.ui.buff)
}