summaryrefslogtreecommitdiffstats
path: root/src/gui.c
diff options
context:
space:
mode:
authorDominique Pelle <dominique.pelle@gmail.com>2021-12-27 17:21:41 +0000
committerBram Moolenaar <Bram@vim.org>2021-12-27 17:21:41 +0000
commitaf4a61a85d6e8cacc35324f266934bc463a21673 (patch)
tree3b2e75b8a36bc8e79d2bc407d929a84b69fd0e0c /src/gui.c
parent5da36052a4bb0f3a9747ec3a8ab9d85e058e39fa (diff)
patch 8.2.3914: various spelling mistakes in commentsv8.2.3914
Problem: Various spelling mistakes in comments. Solution: Fix the mistakes. (Dominique Pellé, closes #9416)
Diffstat (limited to 'src/gui.c')
-rw-r--r--src/gui.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gui.c b/src/gui.c
index 74d681e7e1..9b19cefe36 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -490,7 +490,7 @@ gui_init(void)
static int recursive = 0;
/*
- * It's possible to use ":gui" in a .gvimrc file. The first halve of this
+ * It's possible to use ":gui" in a .gvimrc file. The first half of this
* function will then be executed at the first call, the rest by the
* recursive call. This allow the shell to be opened halfway reading a
* gvimrc file.
@@ -1371,10 +1371,10 @@ gui_update_cursor(
#ifdef FEAT_RIGHTLEFT
if (CURSOR_BAR_RIGHT)
{
- // gui.col points to the left halve of the character but
- // the vertical line needs to be on the right halve.
+ // gui.col points to the left half of the character but
+ // the vertical line needs to be on the right half.
// A double-wide horizontal line is also drawn from the
- // right halve in gui_mch_draw_part_cursor().
+ // right half in gui_mch_draw_part_cursor().
col_off = TRUE;
++gui.col;
}
@@ -2188,7 +2188,7 @@ gui_screenchar(
{
char_u buf[MB_MAXBYTES + 1];
- // Don't draw right halve of a double-width UTF-8 char. "cannot happen"
+ // Don't draw right half of a double-width UTF-8 char. "cannot happen"
if (enc_utf8 && ScreenLines[off] == 0)
return OK;
@@ -3074,7 +3074,7 @@ gui_wait_for_chars(long wtime, int tb_change_cnt)
gui_inchar(
char_u *buf,
int maxlen,
- long wtime, // milli seconds
+ long wtime, // milliseconds
int tb_change_cnt)
{
return gui_wait_for_chars_buf(buf, maxlen, wtime, tb_change_cnt);
@@ -3277,7 +3277,7 @@ button_set:
* selection. But if Visual is active, assume that only the Visual area
* will be selected.
* Exception: On the command line, both the selection is used and a mouse
- * key is send.
+ * key is sent.
*/
if (!mouse_has(checkfor) || checkfor == MOUSE_COMMAND)
{
@@ -5376,7 +5376,7 @@ gui_do_findrepl(
// When the screen is being updated we should not change buffers and
// windows structures, it may cause freed memory to be used. Also don't
- // do this recursively (pressing "Find" quickly several times.
+ // do this recursively (pressing "Find" quickly several times).
if (updating_screen || busy)
return FALSE;