Skip to content

Commit 8e7d622

Browse files
committed
patch 8.2.2160: various typos
Problem: Various typos. Solution: Fix spelling mistakes. (closes #7494)
1 parent 3beaf9c commit 8e7d622

39 files changed

Lines changed: 54 additions & 51 deletions

src/bufwrite.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2138,7 +2138,7 @@ buf_write(
21382138
if (!checking_conversion)
21392139
{
21402140
#if defined(UNIX) && defined(HAVE_FSYNC)
2141-
// On many journalling file systems there is a bug that causes both the
2141+
// On many journaling file systems there is a bug that causes both the
21422142
// original and the backup file to be lost when halting the system
21432143
// right after writing the file. That's because only the meta-data is
21442144
// journalled. Syncing the file slows down the system, but assures it

src/cindent.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2121,7 +2121,7 @@ get_c_indent(void)
21212121
}
21222122

21232123
// #defines and so on go at the left when included in 'cinkeys',
2124-
// exluding pragmas when customized in 'cinoptions'
2124+
// excluding pragmas when customized in 'cinoptions'
21252125
if (*theline == '#' && (*linecopy == '#' || in_cinkeys('#', ' ', TRUE)))
21262126
{
21272127
char_u *directive = skipwhite(theline + 1);

src/cmdexpand.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,7 @@ set_one_cmd_context(
10491049
++p;
10501050
}
10511051

1052-
// If the cursor is touching the command, and it ends in an alpha-numeric
1052+
// If the cursor is touching the command, and it ends in an alphanumeric
10531053
// character, complete the command name.
10541054
if (*p == NUL && ASCII_ISALNUM(p[-1]))
10551055
return NULL;

src/eval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4631,7 +4631,7 @@ set_ref_in_item(
46314631
* "numbuf" is used for a number.
46324632
* When "copyID" is not NULL replace recursive lists and dicts with "...".
46334633
* When both "echo_style" and "composite_val" are FALSE, put quotes around
4634-
* stings as "string()", otherwise does not put quotes around strings, as
4634+
* strings as "string()", otherwise does not put quotes around strings, as
46354635
* ":echo" displays values.
46364636
* When "restore_copyID" is FALSE, repeated items in dictionaries and lists
46374637
* are replaced with "...".

src/ex_cmds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2660,7 +2660,7 @@ do_ecmd(
26602660
if (tlnum <= 0)
26612661
tlnum = 1L;
26622662
}
2663-
// Add BLN_NOCURWIN to avoid a new wininfo items are assocated
2663+
// Add BLN_NOCURWIN to avoid a new wininfo items are associated
26642664
// with the current window.
26652665
newbuf = buflist_new(ffname, sfname, tlnum,
26662666
BLN_LISTED | BLN_NOCURWIN);

src/feature.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@
937937
* +mouse_sgr Unix only: Include code for for SGR-styled mouse.
938938
* +mouse_sysmouse Unix only: Include code for FreeBSD and DragonFly
939939
* console mouse handling.
940-
* +mouse_urxvt Unix only: Include code for for urxvt mosue handling.
940+
* +mouse_urxvt Unix only: Include code for for urxvt mouse handling.
941941
* +mouse Any mouse support (any of the above enabled).
942942
* Always included, since either FEAT_MOUSE_XTERM or
943943
* DOS_MOUSE is defined.

src/getchar.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2264,7 +2264,7 @@ at_ctrl_x_key(void)
22642264
}
22652265

22662266
/*
2267-
* Check if typebuf.tb_buf[] contains a modifer plus key that can be changed
2267+
* Check if typebuf.tb_buf[] contains a modifier plus key that can be changed
22682268
* into just a key, apply that.
22692269
* Check from typebuf.tb_buf[typebuf.tb_off] to typebuf.tb_buf[typebuf.tb_off
22702270
* + "max_offset"].

src/gui_haiku.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3411,7 +3411,7 @@ gui_mch_exit(int vim_exitcode)
34113411
thread_id tid = gui.vimWindow->Thread();
34123412
gui.vimWindow->Lock();
34133413
gui.vimWindow->Quit();
3414-
// Wait until it is truely gone
3414+
// Wait until it is truly gone
34153415
int32 exitcode;
34163416
wait_for_thread(tid, &exitcode);
34173417
}

src/gui_xmdlg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ fill_lists(enum ListSpecifier fix, SharedFontSelData *data)
497497
}
498498

499499
/*
500-
* Now loop trough the remaining lists and set them up.
500+
* Now loop through the remaining lists and set them up.
501501
*/
502502
for (idx = (int)NAME; idx < (int)NONE; ++idx)
503503
{

src/help.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ find_help_tags(
325325
char_u *s, *d;
326326
int i;
327327
// Specific tags that either have a specific replacement or won't go
328-
// throught the generic rules.
328+
// through the generic rules.
329329
static char *(except_tbl[][2]) = {
330330
{"*", "star"},
331331
{"g*", "gstar"},
@@ -647,6 +647,8 @@ prepare_help_buffer(void)
647647

648648
// Always set these options after jumping to a help tag, because the
649649
// user may have an autocommand that gets in the way.
650+
// When adding an option here, also update the help file helphelp.txt.
651+
650652
// Accept all ASCII chars for keywords, except ' ', '*', '"', '|', and
651653
// latin1 word characters (for translated help files).
652654
// Only set it when needed, buf_init_chartab() is some work.

0 commit comments

Comments
 (0)