diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-07-03 22:59:37 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-07-03 23:02:25 +0200 |
commit | f03e2ff95c35dc144879fa9e9ab64e746b3b1a2c (patch) | |
tree | 9deeae1e9079829dfb4e19d110ee37eee23dba5d /src/gui/curses | |
parent | 3247974eb447b5fe2bc4df19464b2f15282f30cd (diff) | |
download | weechat-f03e2ff95c35dc144879fa9e9ab64e746b3b1a2c.zip |
core: fix styles
Diffstat (limited to 'src/gui/curses')
-rw-r--r-- | src/gui/curses/gui-curses-key.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/curses/gui-curses-key.c b/src/gui/curses/gui-curses-key.c index 8eea1bb7f..7a62922dd 100644 --- a/src/gui/curses/gui-curses-key.c +++ b/src/gui/curses/gui-curses-key.c @@ -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))) { |