From d12caa65d0ca571d0a7c722a304795107c360e38 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Thu, 9 Apr 2020 07:58:52 +0300 Subject: [PATCH] (dview_handle_key): refactoring. Signed-off-by: Andrew Borodin --- src/diffviewer/ydiff.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/diffviewer/ydiff.c b/src/diffviewer/ydiff.c index 7ac82e34e..43c758971 100644 --- a/src/diffviewer/ydiff.c +++ b/src/diffviewer/ydiff.c @@ -3290,11 +3290,10 @@ dview_handle_key (WDiff * dview, int key) #endif command = widget_lookup_key (WIDGET (dview), key); - if ((command != CK_IgnoreKey) && (dview_execute_cmd (dview, command) == MSG_HANDLED)) - return MSG_HANDLED; + if (command == CK_IgnoreKey) + return MSG_NOT_HANDLED; - /* Key not used */ - return MSG_NOT_HANDLED; + return dview_execute_cmd (dview, command); } /* --------------------------------------------------------------------------------------------- */