:: commit ef9b025f20691da1c16d88799a94f09213b14664

Mintsuki <mintsuki@protonmail.com> — 2026-04-11 20:39

parents: a01a3c0f17

menu: Remove redundant terminal size check from editor

diff --git a/common/menu.c b/common/menu.c
index 5c388bb4..d7263aa8 100644
--- a/common/menu.c
+++ b/common/menu.c
@@ -179,10 +179,6 @@ static void putchar_tokencol(int type, char c) {
 static bool editor_no_term_reset = false;
 
 char *config_entry_editor(const char *title, const char *orig_entry) {
-    if (terms[0]->cols < 40 || terms[0]->rows < 16) {
-        return NULL;
-    }
-
     FOR_TERM(TERM->autoflush = false);
 
     FOR_TERM(TERM->cursor_enabled = true);
tab: 248 wrap: offon