From a6b1c449ff1262dc480bcdd7b4359b99ccd6c21e Mon Sep 17 00:00:00 2001 From: Digital Studium Date: Wed, 24 Apr 2024 20:52:56 +0300 Subject: [PATCH] Fix condition --- kls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kls b/kls index 459f783..4e14f6f 100755 --- a/kls +++ b/kls @@ -54,7 +54,7 @@ def draw_menu(menu: Menu): def run_command(key: str): - if not (key == "4" and api_resource() != "pods") and not (key == "5" and api_resource() != "pods"): + if not (key in ("4","5","6") and api_resource() != "pods"): curses.def_prog_mode() # save the previous terminal state curses.endwin() # without this, there are problems after exiting vim command = KEY_BINDINGS[key].format(namespace=namespace(), api_resource=api_resource(), resource=resource())