]> jfr.im git - irc/weechat/weechat.git/commitdiff
core: fix styles
authorSébastien Helleu <redacted>
Mon, 3 Jul 2023 20:59:37 +0000 (22:59 +0200)
committerSébastien Helleu <redacted>
Mon, 3 Jul 2023 20:59:37 +0000 (22:59 +0200)
src/gui/curses/gui-curses-key.c
src/gui/gui-key.c

index 8eea1bb7fe40d352e98a506eae5dcc48d98a5c31..7a62922ddbec04c53fff5c0b1f5b358e16a73dbf 100644 (file)
@@ -396,7 +396,8 @@ gui_key_flush (int paste)
              * or if the mouse code is valid UTF-8 (do not send partial mouse
              * code which is not UTF-8 valid)
              */
-            if (!paste && i > gui_key_last_key_pressed_sent
+            if (!paste
+                && (i > gui_key_last_key_pressed_sent)
                 && (!gui_mouse_event_pending
                     || utf8_is_valid (key_str, -1, NULL)))
             {
index 7212e10bc1a394160bad6b864d9b3dc4b75cfdf4..1744f21d96fec012dbff4c45aa02af21f472d832 100644 (file)
@@ -2390,9 +2390,7 @@ gui_key_pressed (const char *key_str)
     rc_expand = gui_key_expand (gui_key_combo, &key_name, &key_name_alias);
 
     if (!rc_expand)
-    {
         goto end_no_input;
-    }
 
     ptr_key = NULL;
     exact_match = 0;