summaryrefslogtreecommitdiffstats
path: root/src/xmenu.inc
diff options
context:
space:
mode:
Diffstat (limited to 'src/xmenu.inc')
-rw-r--r--src/xmenu.inc14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/xmenu.inc b/src/xmenu.inc
index 1d1d2bd..d81fd83 100644
--- a/src/xmenu.inc
+++ b/src/xmenu.inc
@@ -375,10 +375,11 @@
0
xmenu .xm_title get
- dup .undef ne { exec strsize pop max } { pop } ifelse
+ dup .undef ne { exec strsize pop max } { pop
xmenu .xm_list get xmenu .xm_current get get
dup .undef ne { exec strsize pop max } { pop } ifelse
+ } ifelse
} def
@@ -397,16 +398,11 @@
panel.text.y
moveto
- currentpoint
-
xmenu .xm_title get
- dup .undef ne { exec show.rtl } { pop } ifelse
-
- moveto 0 lineheight 4 add rmoveto
-
- panel.normal.fg setcolor
-
+ dup .undef eq {
+ pop
xmenu .xm_list get xmenu .xm_current get get
+ } if
dup .undef ne { exec show.rtl } { pop } ifelse
} def