Fix condition

This commit is contained in:
Digital Studium 2024-04-24 20:52:56 +03:00
parent 8947abc59d
commit a6b1c449ff
1 changed files with 1 additions and 1 deletions

2
kls
View File

@ -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())