Skip to content

Commit 4b96df5

Browse files
committed
patch 8.2.0156: various typos in source files and tests
Problem: Various typos in source files and tests. Solution: Fix the typos. (Emir Sari, closes #5532)
1 parent a5d5953 commit 4b96df5

41 files changed

Lines changed: 56 additions & 50 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ MINOR = 2
153153
# > msvc2015.bat
154154
# - Build the console binary:
155155
# > nmake -f Make_mvc.mak
156-
# - Run the tests and check the ouput:
156+
# - Run the tests and check the output:
157157
# > nmake -f Make_mvc.mak testclean
158158
# > nmake -f Make_mvc.mak test
159159
# - Rename (using ../tools/rename.bat):

src/INSTALLvms.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ from CVS mirror ftp://ftp.polarhome.com/pub/cvs/SOURCE/
198198
more information can be found in os_vms_fix.com file itself.
199199

200200
NOTE: even if os_vms_fix.com will fix all pre-processor directives it will
201-
leave singe (long) line directives. You have to fix them manually.
201+
leave single (long) line directives. You have to fix them manually.
202202
Known problematic files are option.h and option.c
203203

204204
4.2. After the conversion you can continue building as it has been described
@@ -319,7 +319,7 @@ perl_env :
319319

320320
Build it as normally.
321321

322-
Used sharable images are:
322+
Used shareable images are:
323323
gtk_root:[glib]libglib.exe /share,-
324324
gtk_root:[glib.gmodule]libgmodule.exe /share,-
325325
gtk_root:[gtk.gdk]libgdk.exe /share,-

src/Make_vms.mms

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ ALL_CFLAGS = /def=($(MODEL_DEF)$(DEFS)$(DEBUG_DEF)$(PERL_DEF)$(PYTHON_DEF) -
281281
$(TCL_INC)$(XDIFF_INC)$(XPM_INC))
282282

283283
# CFLAGS displayed in :ver information
284-
# It is specially formated for correct display of unix like includes
284+
# It is specially formatted for correct display of unix like includes
285285
# as $(GUI_INC) - replaced with $(GUI_INC_VER)
286286
# Otherwise should not be any other difference.
287287
ALL_CFLAGS_VER = /def=($(MODEL_DEF)$(DEFS)$(DEBUG_DEF)$(PERL_DEF)$(PYTHON_DEF) -

src/beval.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ typedef struct BalloonEvalStruct
3838
GtkWidget *balloonShell;
3939
GtkWidget *balloonLabel;
4040
unsigned int timerID; // timer for run
41-
BeState showState; // tells us whats currently going on
41+
BeState showState; // tells us what's currently going on
4242
int x;
4343
int y;
4444
unsigned int state; // Button/Modifier key state
@@ -48,7 +48,7 @@ typedef struct BalloonEvalStruct
4848
Widget balloonShell;
4949
Widget balloonLabel;
5050
XtIntervalId timerID; // timer for run
51-
BeState showState; // tells us whats currently going on
51+
BeState showState; // tells us what's currently going on
5252
XtAppContext appContext; // used in event handler
5353
Position x;
5454
Position y;
@@ -60,7 +60,7 @@ typedef struct BalloonEvalStruct
6060
HWND balloon;
6161
int x;
6262
int y;
63-
BeState showState; // tells us whats currently going on
63+
BeState showState; // tells us what's currently going on
6464
# endif
6565
# endif
6666
# if !defined(FEAT_GUI_GTK) && !defined(FEAT_GUI_MSWIN)

src/buffer.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1690,7 +1690,7 @@ set_curbuf(buf_T *buf, int action)
16901690
set_bufref(&prevbufref, prevbuf);
16911691
set_bufref(&newbufref, buf);
16921692

1693-
// Autocommands may delete the curren buffer and/or the buffer we wan to go
1693+
// Autocommands may delete the current buffer and/or the buffer we want to go
16941694
// to. In those cases don't close the buffer.
16951695
if (!apply_autocmds(EVENT_BUFLEAVE, NULL, NULL, FALSE, curbuf)
16961696
|| (bufref_valid(&prevbufref)
@@ -1713,6 +1713,7 @@ set_curbuf(buf_T *buf, int action)
17131713
#endif
17141714
{
17151715
win_T *previouswin = curwin;
1716+
17161717
if (prevbuf == curbuf)
17171718
u_sync(FALSE);
17181719
close_buffer(prevbuf == curwin->w_buffer ? curwin : NULL, prevbuf,

src/charset.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1939,7 +1939,7 @@ vim_str2nr(
19391939
}
19401940
}
19411941

1942-
// Check for an alpha-numeric character immediately following, that is
1942+
// Check for an alphanumeric character immediately following, that is
19431943
// most likely a typo.
19441944
if (strict && n - 1 != maxlen && ASCII_ISALNUM(*ptr))
19451945
return;

src/evalvars.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2813,7 +2813,7 @@ set_var_const(
28132813
char_u *val = tv_get_string(tv);
28142814

28152815
// Careful: when assigning to v:errmsg and tv_get_string()
2816-
// causes an error message the variable will alrady be set.
2816+
// causes an error message the variable will already be set.
28172817
if (di->di_tv.vval.v_string == NULL)
28182818
di->di_tv.vval.v_string = vim_strsave(val);
28192819
}

src/ex_cmds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5288,7 +5288,7 @@ check_help_lang(char_u *arg)
52885288
* Return a heuristic indicating how well the given string matches. The
52895289
* smaller the number, the better the match. This is the order of priorities,
52905290
* from best match to worst match:
5291-
* - Match with least alpha-numeric characters is better.
5291+
* - Match with least alphanumeric characters is better.
52925292
* - Match with least total characters is better.
52935293
* - Match towards the start is better.
52945294
* - Match starting with "+" is worse (feature instead of command)

src/ex_docmd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6134,7 +6134,7 @@ ex_edit(exarg_T *eap)
61346134
}
61356135

61366136
/*
6137-
* ":edit <file>" command and alikes.
6137+
* ":edit <file>" command and alike.
61386138
*/
61396139
void
61406140
do_exedit(

src/getchar.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3237,7 +3237,7 @@ vgetorpeek(int advance)
32373237
* 1. a scriptfile
32383238
* 2. the keyboard
32393239
*
3240-
* As much characters as we can get (upto 'maxlen') are put in "buf" and
3240+
* As many characters as we can get (up to 'maxlen') are put in "buf" and
32413241
* NUL terminated (buffer length must be 'maxlen' + 1).
32423242
* Minimum for "maxlen" is 3!!!!
32433243
*

0 commit comments

Comments
 (0)