From 1f2e2d014bad6ce028048aaca36118377d70640f Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Fri, 11 May 2018 02:05:09 +0200 Subject: menuconfig: Code style nit --- menuconfig.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/menuconfig.py b/menuconfig.py index 3bc3cc6..230547d 100755 --- a/menuconfig.py +++ b/menuconfig.py @@ -1396,13 +1396,10 @@ def _jump_to_dialog(): c = _get_wch_compat(edit_box) if c == "\n": - if not matches: - continue - - _jump_to(matches[sel_node_i][0]) - - _safe_curs_set(0) - return + if matches: + _jump_to(matches[sel_node_i][0]) + _safe_curs_set(0) + return if c == "\x1B": # \x1B = ESC _safe_curs_set(0) -- cgit v1.2.3