Mercurial > vim
diff src/gui_w32.c @ 26771:fc859aea8cec v8.2.3914
patch 8.2.3914: various spelling mistakes in comments
Commit: https://github.com/vim/vim/commit/af4a61a85d6e8cacc35324f266934bc463a21673
Author: Dominique Pelle <dominique.pelle@gmail.com>
Date: Mon Dec 27 17:21:41 2021 +0000
patch 8.2.3914: various spelling mistakes in comments
Problem: Various spelling mistakes in comments.
Solution: Fix the mistakes. (Dominique Pell?, closes https://github.com/vim/vim/issues/9416)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 27 Dec 2021 18:30:05 +0100 |
parents | 324086c6f757 |
children | bce848ec8b1b |
line wrap: on
line diff
--- a/src/gui_w32.c +++ b/src/gui_w32.c @@ -3041,7 +3041,7 @@ get_scroll_flags(void) if (!is_window_onscreen(s_hwnd)) return SW_INVALIDATE; - // Check if there is an window (partly) on top of us. + // Check if there is a window (partly) on top of us. GetWindowRect(s_hwnd, &rcVim); for (hwnd = s_hwnd; (hwnd = GetWindow(hwnd, GW_HWNDPREV)) != (HWND)0; ) if (IsWindowVisible(hwnd)) @@ -5740,7 +5740,7 @@ GetCompositionString_inUCS2(HIMC hIMC, D if (!pImmGetContext) return NULL; // no imm32.dll - // Try Unicode; this'll always work on NT regardless of codepage. + // Try Unicode; this will always work on NT regardless of codepage. ret = pImmGetCompositionStringW(hIMC, GCS, NULL, 0); if (ret == 0) return NULL; // empty @@ -5757,7 +5757,7 @@ GetCompositionString_inUCS2(HIMC hIMC, D return (short_u *)wbuf; } - // ret < 0; we got an error, so try the ANSI version. This'll work + // ret < 0; we got an error, so try the ANSI version. This will work // on 9x/ME, but only if the codepage happens to be set to whatever // we're inputting. ret = pImmGetCompositionStringA(hIMC, GCS, NULL, 0); @@ -7390,8 +7390,8 @@ add_dialog_element( *p++ = 0; // advance pointer over nExtraStuff WORD - 2 more - return p; //total = 15+ (strlen(caption)) words - // = 30 + 2(strlen(caption) bytes reqd + return p; // total = 15 + strlen(caption) words + // bytes read = 2 * total }