diff --git a/menuconfig.py b/menuconfig.py index 7e765d3..a0ab004 100755 --- a/menuconfig.py +++ b/menuconfig.py @@ -1757,6 +1757,9 @@ def edit_width(): _safe_curs_set(0) return None + elif c == "\0": # \0 = NUL, ignore + pass + else: s, i, hscroll = _edit_text(c, s, i, hscroll, edit_width()) @@ -2196,6 +2199,9 @@ def select_prev_match(): elif c == curses.KEY_HOME: sel_node_i = scroll = 0 + elif c == "\0": # \0 = NUL, ignore + pass + else: s, s_i, hscroll = _edit_text(c, s, s_i, hscroll, _width(edit_box) - 2)