Mercurial > vim
diff src/gui_w32.c @ 32395:2ed95122d59c v9.0.1529
patch 9.0.1529: code style test doesn't check for space after "if"
Commit: https://github.com/vim/vim/commit/c9471b18728b1b37c04845ca2bc59fc981308b2d
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue May 9 15:00:00 2023 +0100
patch 9.0.1529: code style test doesn't check for space after "if"
Problem: Code style test doesn't check for space after "if".
Solution: Add a test for space.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 09 May 2023 16:15:05 +0200 |
parents | 97255d909654 |
children | bb5458706799 |
line wrap: on
line diff
--- a/src/gui_w32.c +++ b/src/gui_w32.c @@ -8736,7 +8736,7 @@ test_gui_w32_sendevent_keyboard(dict_T * // If there are modifiers in the args, and it is not a keyup event and // vkCode is not a modifier key, then we generate virtual modifier key // messages before sending the actual key message. - if(mods && STRICMP(event, "keydown") == 0 && !isModKey) + if (mods && STRICMP(event, "keydown") == 0 && !isModKey) { int n = 0; if (mods & MOD_MASK_SHIFT) @@ -8769,7 +8769,7 @@ test_gui_w32_sendevent_keyboard(dict_T * if (STRICMP(event, "keyup") == 0) { inputs[0].ki.dwFlags = KEYEVENTF_KEYUP; - if(!isModKey) + if (!isModKey) unwrapMods = TRUE; }