summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/common.inc6
-rw-r--r--src/dia_bits.inc7
2 files changed, 5 insertions, 8 deletions
diff --git a/src/common.inc b/src/common.inc
index 731c23e..cc7f282 100644
--- a/src/common.inc
+++ b/src/common.inc
@@ -304,10 +304,10 @@
bc.cmd 0 0 put
} {
menu.texts menu.entry get
- xmenu.bits .xm_current get 1 eq {
- "64" exch "%s%s "
+ bits.suffix xmenu.bits .xm_current get get dup {
+ exch "%s%s "
} {
- "%s "
+ pop "%s "
} ifelse
bc.cmd sprintf
} ifelse
diff --git a/src/dia_bits.inc b/src/dia_bits.inc
index 76c2689..2a4efc1 100644
--- a/src/dia_bits.inc
+++ b/src/dia_bits.inc
@@ -33,12 +33,9 @@
/bits.default 1 def
xmenu .xm_list [ "x86" "x86-64" ] put
} if
- } if
-
- % no '64' suffix
- 32bit_boot_dir 64bit_boot_dir ne {
+ } {
bits.suffix 1 .undef put
- } if
+ } ifelse
xmenu .xm_current bits.default put