summaryrefslogtreecommitdiff
path: root/menuconfig.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-05-11 02:05:09 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2018-05-11 02:05:09 +0200
commit1f2e2d014bad6ce028048aaca36118377d70640f (patch)
treeca923984be43421ec037881cb38216b278848216 /menuconfig.py
parent9811256272092137ab3f04586e21c45ce8bea8c1 (diff)
menuconfig: Code style nit
Diffstat (limited to 'menuconfig.py')
-rwxr-xr-xmenuconfig.py11
1 files 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)