From b4d3b93da2e23cefb85dd98f1f7f9706aa0402d4 Mon Sep 17 00:00:00 2001 From: mathieui Date: Fri, 17 Aug 2018 02:16:03 +0200 Subject: Add typing information and reformat stuff --- poezio/tabs/listtab.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'poezio/tabs/listtab.py') diff --git a/poezio/tabs/listtab.py b/poezio/tabs/listtab.py index 6a4da08e..07b3fe05 100644 --- a/poezio/tabs/listtab.py +++ b/poezio/tabs/listtab.py @@ -161,10 +161,8 @@ class ListTab(Tab): def on_input(self, key, raw): res = self.input.do_command(key, raw=raw) - if res and not isinstance(self.input, windows.Input): - return True - elif res: - return False + if res: + return not isinstance(self.input, windows.Input) if not raw and key in self.key_func: return self.key_func[key]() -- cgit v1.2.3