FreeBSD Bugzilla – Attachment 224328 Details for
Bug 255299
loader: Fix empty loader_menu_title
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix empty loader_menu_title
fix-empty-loader-menu-title.patch (text/plain), 931 bytes, created by
Jose Luis Duran
on 2021-04-21 10:19:27 UTC
(
hide
)
Description:
Fix empty loader_menu_title
Filename:
MIME Type:
Creator:
Jose Luis Duran
Created:
2021-04-21 10:19:27 UTC
Size:
931 bytes
patch
obsolete
>diff --git stand/forth/menu.4th stand/forth/menu.4th >index a336b9f..75e75e3 100644 >--- stand/forth/menu.4th >+++ 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 >diff --git stand/lua/drawer.lua stand/lua/drawer.lua >index 523735a..6324c22 100644 >--- stand/lua/drawer.lua >+++ stand/lua/drawer.lua >@@ -286,7 +286,10 @@ local function drawbox() > menu_header_x = x + (w // 2) - (#menu_header // 2) > end > screen.setcursor(menu_header_x - 1, y) >- printc(" " .. menu_header .. " ") >+ if menu_header ~= "" then >+ printc(" " .. menu_header .. " ") >+ end >+ > end > > local function drawbrand()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 255299
: 224328