aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-01-18 20:20:20 +0100
committerJoe <rbo@gmx.us>2024-01-18 20:20:20 +0100
commit3ad855abb2943ad6c7bf7bd359665fb4f31b29c9 (patch)
tree334691499a5cf5cdf0623a245bd9c6b37d9e2f90
parentgood (diff)
downloadhardflip-3ad855abb2943ad6c7bf7bd359665fb4f31b29c9.tar.gz
hardflip-3ad855abb2943ad6c7bf7bd359665fb4f31b29c9.tar.bz2
hardflip-3ad855abb2943ad6c7bf7bd359665fb4f31b29c9.tar.xz
hardflip-3ad855abb2943ad6c7bf7bd359665fb4f31b29c9.tar.zst
hardflip-3ad855abb2943ad6c7bf7bd359665fb4f31b29c9.zip
clean
-rw-r--r--c_init.go3
-rw-r--r--i_ui.go3
2 files changed, 3 insertions, 3 deletions
diff --git a/c_init.go b/c_init.go
index d2250af..3e7e4d1 100644
--- a/c_init.go
+++ b/c_init.go
@@ -63,9 +63,6 @@ type HardOpts struct {
Term string
}
-// HACK: fuck global vars
-var g_load_count int = -1
-
// this function recurses into the specified root directory in order to load
// every yaml file into memory
func c_recurse_data_dir(dir, root string, opts HardOpts,
diff --git a/i_ui.go b/i_ui.go
index b056098..e3f4637 100644
--- a/i_ui.go
+++ b/i_ui.go
@@ -612,6 +612,9 @@ func i_scrollhint(ui HardUI, litems *ItemsList) {
}
}
+// HACK: fuck global vars but do we have the choice really
+var g_load_count int = -1
+
func i_display_load_ui(ui *HardUI) {
g_load_count += 1
if g_load_count % 1000 != 0 {