diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2023-03-07 17:13:51 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-03-07 17:13:51 +0000 |
commit | 14113fdf9cb3d588c0d1c3a210246b981cf5aad3 (patch) | |
tree | a0f17ad3f6c5b31a0463e452122ba9e5aaa9705a /src/os_win32.c | |
parent | 663ee88a8260d69d9310e22f2bfdec49af6a102e (diff) |
patch 9.0.1390: FOR_ALL_ macros are defined in an unexpected filev9.0.1390
Problem: FOR_ALL_ macros are defined in an unexpected file.
Solution: Move FOR_ALL_ macros to macros.h. Add FOR_ALL_HASHTAB_ITEMS.
(Yegappan Lakshmanan, closes #12109)
Diffstat (limited to 'src/os_win32.c')
-rw-r--r-- | src/os_win32.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/os_win32.c b/src/os_win32.c index a151b19b04..b519bf0eca 100644 --- a/src/os_win32.c +++ b/src/os_win32.c @@ -1308,9 +1308,9 @@ encode_key_event(dict_T *args, INPUT_RECORD *ir) if (mods) { // If "modifiers" is explicitly set in the args, then we reset any - // remembered modifer key state that may have been set from earlier - // mod-key-down events, even if they are not yet unset by earlier - // mod-key-up events. + // remembered modifier key state that may have been set from + // earlier mod-key-down events, even if they are not yet unset by + // earlier mod-key-up events. s_dwMods = 0; if (mods & MOD_MASK_SHIFT) ker.dwControlKeyState |= SHIFT_PRESSED; @@ -2017,7 +2017,7 @@ test_mswin_event(char_u *event, dict_T *args) } // Ideally, WriteConsoleInput would be used to inject these low-level - // events. But, this doesnt work well in the CI test environment. So + // events. But, this doesn't work well in the CI test environment. So // implementing an input_record_buffer instead. if (input_encoded) lpEventsWritten = write_input_record_buffer(&ir, 1); @@ -5737,7 +5737,7 @@ win32_build_env(dict_T *env, garray_T *gap, int is_terminal) if (env != NULL) { - for (hi = env->dv_hashtab.ht_array; todo > 0; ++hi) + FOR_ALL_HASHTAB_ITEMS(&env->dv_hashtab, hi, todo) { if (!HASHITEM_EMPTY(hi)) { |