From 61ca10f68827afe7222c1ffafc217fad55bf1426 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Tue, 18 Jul 2023 20:55:12 +1000 Subject: [PATCH] lib-menu: prohibit left-shift of display. As the menu window is sized to match the longest line, there is a risk of a left-shift happening if the cursor ever ends up at the end of that line. That would be bad, so explicitly disable left-shift. Signed-off-by: NeilBrown --- lib-menu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib-menu.c b/lib-menu.c index 49613835..d1016e3e 100644 --- a/lib-menu.c +++ b/lib-menu.c @@ -89,6 +89,7 @@ DEF_CMD(menu_attach) return Efail; call("doc:set:autoclose", docp, 1); attr_set_str(&docp->attrs, "render-simple", "format"); + attr_set_str(&docp->attrs, "shift-left", "0"); attr_set_str(&docp->attrs, "heading", ""); attr_set_str(&docp->attrs, "line-format", "%name"); attr_set_str(&docp->attrs, "done-key", ci->str2 ?: "menu-done"); -- 2.39.5