aboutsummaryrefslogtreecommitdiff
path: root/stand/forth
diff options
context:
space:
mode:
authorToomas Soome <tsoome@FreeBSD.org>2021-04-21 11:42:10 +0000
committerToomas Soome <tsoome@FreeBSD.org>2021-04-21 11:50:23 +0000
commit4ba91fa0736bb0672d475b6b56d9e7b06e78ff69 (patch)
treec9f6df882184d75ad53bd1c1a06662def54d8f2d /stand/forth
parentb563ff5d4f812df198ade6991834782a5d35af08 (diff)
downloadsrc-4ba91fa0736bb0672d475b6b56d9e7b06e78ff69.tar.gz
src-4ba91fa0736bb0672d475b6b56d9e7b06e78ff69.zip
loader: do not output empty menu title
As we output spaces around the menu title, we should also check, if the title is actually empty string. PR: 255299 Submitted by: Jose Luis Duran Reported by: Jose Luis Duran MFC after: 1 week
Diffstat (limited to 'stand/forth')
-rw-r--r--stand/forth/menu.4th6
1 files changed, 5 insertions, 1 deletions
diff --git a/stand/forth/menu.4th b/stand/forth/menu.4th
index a336b9f9e7aa..75e75e3e3654 100644
--- a/stand/forth/menu.4th
+++ b/stand/forth/menu.4th
@@ -490,7 +490,11 @@ also menu-infrastructure definitions
menuX @ 19 + over 2 / - menuY @ 1-
then
swap 1- swap
- at-xy space type space
+ at-xy dup 0= if
+ 2drop ( empty loader_menu_title )
+ else
+ space type space
+ then
\ If $menu_init is set, evaluate it (allowing for whole menus to be
\ constructed dynamically -- as this function could conceivably set