aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--c_defs.go7
-rw-r--r--i_ui.go6
2 files changed, 8 insertions, 5 deletions
diff --git a/c_defs.go b/c_defs.go
index 78daf3c..b7e2cee 100644
--- a/c_defs.go
+++ b/c_defs.go
@@ -39,7 +39,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* hardflip: src/c_defs.go
- * Wed Dec 20 12:21:38 2023
+ * Wed Dec 27 12:37:08 2023
* Joe
*
* constants
@@ -62,3 +62,8 @@ const (
NORMAL_MODE = 0
DELETE_MODE = 1
)
+
+var (
+HOST_ICONS = [2]string{"  ", "  "}
+DIRS_ICONS = [2]string{"  ", "  "}
+)
diff --git a/i_ui.go b/i_ui.go
index 8fd7306..a9897db 100644
--- a/i_ui.go
+++ b/i_ui.go
@@ -214,8 +214,6 @@ func i_host_panel(ui HardUI, opts HardOpts, ldirs *DirsList) {
ui.dim[W] / 3, ui.dim[H] - 2,
" Hosts ", false)
dirs := ldirs.head
- host_icons := [2]string{"  ", "  "}
- dirs_icons := [2]string{"  ", "  "}
for i := 0; i < ui.list_start && dirs.next != nil; i++ {
dirs = dirs.next
}
@@ -235,7 +233,7 @@ func i_host_panel(ui HardUI, opts HardOpts, ldirs *DirsList) {
if dirs.Folded == true {
fold_var = 1
}
- text += dirs_icons[fold_var]
+ text += DIRS_ICONS[fold_var]
}
text += dirs.Name
spaces := ""
@@ -262,7 +260,7 @@ func i_host_panel(ui HardUI, opts HardOpts, ldirs *DirsList) {
}
}
if opts.Icon == true {
- text += host_icons[int(host.Protocol)]
+ text += HOST_ICONS[int(host.Protocol)]
}
text += host.Name
spaces := ""