0
0
mirror of https://github.com/vim/vim.git synced 2025-09-05 21:43:39 -04:00

patch 8.1.0528: various typos in comments

Problem:    Various typos in comments.
Solution:   Fix the typos.
This commit is contained in:
Bram Moolenaar 2018-11-16 16:21:05 +01:00
parent f0d58efc9d
commit c4568ab37e
22 changed files with 47 additions and 45 deletions

View File

@ -11,10 +11,10 @@ Contents:
See INSTALLami.txt for Amiga See INSTALLami.txt for Amiga
See INSTALLmac.txt for Macintosh See INSTALLmac.txt for Macintosh
See INSTALLpc.txt for PC (Windows 95/98/NT/XP/Vista/7/8/10) See INSTALLpc.txt for PC (Windows XP/Vista/7/8/10)
See INSTALLvms.txt for VMS See INSTALLvms.txt for VMS
See INSTALLx.txt for cross-compiling on Unix See INSTALLx.txt for cross-compiling on Unix
See ../README_390.txt for OS/390 Unix See ../READMEdir/README_390.txt for z/OS and OS/390 Unix
See ../runtime/doc/os_beos.txt for BeBox See ../runtime/doc/os_beos.txt for BeBox

View File

@ -8086,7 +8086,7 @@ aubuflocal_remove(buf_T *buf)
/* /*
* Add an autocmd group name. * Add an autocmd group name.
* Return it's ID. Returns AUGROUP_ERROR (< 0) for error. * Return its ID. Returns AUGROUP_ERROR (< 0) for error.
*/ */
static int static int
au_new_group(char_u *name) au_new_group(char_u *name)
@ -8153,7 +8153,7 @@ au_del_group(char_u *name)
/* /*
* Find the ID of an autocmd group name. * Find the ID of an autocmd group name.
* Return it's ID. Returns AUGROUP_ERROR (< 0) for error. * Return its ID. Returns AUGROUP_ERROR (< 0) for error.
*/ */
static int static int
au_find_group(char_u *name) au_find_group(char_u *name)

View File

@ -5501,7 +5501,7 @@ gui_handle_drop(
p = NULL; p = NULL;
/* Handle the drop, :edit or :split to get to the file. This also /* Handle the drop, :edit or :split to get to the file. This also
* frees fnames[]. Skip this if there is only one item it's a * frees fnames[]. Skip this if there is only one item, it's a
* directory and Shift is held down. */ * directory and Shift is held down. */
if (count == 1 && (modifiers & MOUSE_SHIFT) != 0 if (count == 1 && (modifiers & MOUSE_SHIFT) != 0
&& mch_isdir(fnames[0])) && mch_isdir(fnames[0]))

View File

@ -900,7 +900,7 @@ gui_athena_menu_font(Widget id)
{ {
XtUnmanageChild(id); XtUnmanageChild(id);
XtVaSetValues(id, XtNfontSet, gui.menu_fontset, NULL); XtVaSetValues(id, XtNfontSet, gui.menu_fontset, NULL);
/* We should force the widget to recalculate it's /* We should force the widget to recalculate its
* geometry now. */ * geometry now. */
XtManageChild(id); XtManageChild(id);
} }
@ -929,7 +929,7 @@ gui_athena_menu_font(Widget id)
if (has_submenu(id)) if (has_submenu(id))
XtVaSetValues(id, XtNrightBitmap, pullerBitmap, NULL); XtVaSetValues(id, XtNrightBitmap, pullerBitmap, NULL);
/* Force the widget to recalculate it's geometry now. */ /* Force the widget to recalculate its geometry now. */
if (managed) if (managed)
XtManageChild(id); XtManageChild(id);
} }
@ -989,7 +989,7 @@ gui_mch_new_menu_font(void)
} }
} }
/* Now, to simulate the window being resized. Only, this /* Now, to simulate the window being resized. Only, this
* will resize the window to it's current state. * will resize the window to its current state.
* *
* There has to be a better way, but I do not see one at this time. * There has to be a better way, but I do not see one at this time.
* (David Harrison) * (David Harrison)
@ -1071,7 +1071,7 @@ gui_mch_submenu_change(
} }
# ifdef FEAT_BEVAL_GUI # ifdef FEAT_BEVAL_GUI
/* If we have a tooltip, then we need to change it's colors */ /* If we have a tooltip, then we need to change its colors */
if (mp->tip != NULL) if (mp->tip != NULL)
{ {
Arg args[2]; Arg args[2];
@ -1089,7 +1089,7 @@ gui_mch_submenu_change(
{ {
gui_athena_menu_font(mp->id); gui_athena_menu_font(mp->id);
#ifdef FEAT_BEVAL_GUI #ifdef FEAT_BEVAL_GUI
/* If we have a tooltip, then we need to change it's font */ /* If we have a tooltip, then we need to change its font */
/* Assume XtNinternational == True (in createBalloonEvalWindow) /* Assume XtNinternational == True (in createBalloonEvalWindow)
*/ */
if (mp->tip != NULL) if (mp->tip != NULL)
@ -1552,7 +1552,7 @@ gui_mch_destroy_menu(vimmenu_T *menu)
* This is a hack to stop the Athena simpleMenuWidget from getting a * This is a hack to stop the Athena simpleMenuWidget from getting a
* BadValue error when a menu's last child is destroyed. We check to * BadValue error when a menu's last child is destroyed. We check to
* see if this is the last child and if so, don't delete it. The parent * see if this is the last child and if so, don't delete it. The parent
* will be deleted soon anyway, and it will delete it's children like * will be deleted soon anyway, and it will delete its children like
* all good widgets do. * all good widgets do.
*/ */
/* NOTE: The cause of the BadValue X Protocol Error is because when the /* NOTE: The cause of the BadValue X Protocol Error is because when the

View File

@ -925,7 +925,7 @@ gui_mch_destroy_menu(vimmenu_T *menu)
g_object_ref(menu->id); g_object_ref(menu->id);
/* Workaround for a spurious gtk warning in Ubuntu: "Trying to remove /* Workaround for a spurious gtk warning in Ubuntu: "Trying to remove
* a child that doesn't believe we're it's parent." * a child that doesn't believe we're its parent."
* Remove widget from gui.menubar before destroying it. */ * Remove widget from gui.menubar before destroying it. */
if (menu->id != NULL && gui.menubar != NULL if (menu->id != NULL && gui.menubar != NULL
&& gtk_widget_get_parent(menu->id) == gui.menubar) && gtk_widget_get_parent(menu->id) == gui.menubar)

View File

@ -4284,7 +4284,7 @@ mainwin_destroy_cb(GObject *object UNUSED, gpointer data UNUSED)
* hints (and thus the required size from -geom), but that after that we * hints (and thus the required size from -geom), but that after that we
* put the hints back to normal (the actual minimum size) so we may * put the hints back to normal (the actual minimum size) so we may
* subsequently be resized smaller. GtkSocket (the parent end) uses the * subsequently be resized smaller. GtkSocket (the parent end) uses the
* plug's window 'min hints to set *it's* minimum size, but that's also the * plug's window 'min hints to set *its* minimum size, but that's also the
* only way we have of making ourselves bigger (by set lines/columns). * only way we have of making ourselves bigger (by set lines/columns).
* Thus set hints at start-up to ensure correct init. size, then a * Thus set hints at start-up to ensure correct init. size, then a
* second after the final attempt to reset the real minimum hints (done by * second after the final attempt to reset the real minimum hints (done by

View File

@ -2278,7 +2278,7 @@ gui_mac_doKeyEvent(EventRecord *theEvent)
if (p_mh) if (p_mh)
ObscureCursor(); ObscureCursor();
/* Get the key code and it's ASCII representation */ /* Get the key code and its ASCII representation */
key_sym = ((theEvent->message & keyCodeMask) >> 8); key_sym = ((theEvent->message & keyCodeMask) >> 8);
key_char = theEvent->message & charCodeMask; key_char = theEvent->message & charCodeMask;
num = 1; num = 1;
@ -2597,7 +2597,7 @@ gui_mac_mouse_wheel(EventHandlerCallRef nextHandler, EventRef theEvent,
bail: bail:
/* /*
* when we fail give any additional callback handler a chance to perform * when we fail give any additional callback handler a chance to perform
* it's actions * its actions
*/ */
return CallNextEventHandler(nextHandler, theEvent); return CallNextEventHandler(nextHandler, theEvent);
} }

View File

@ -1114,7 +1114,7 @@ gui_mch_compute_menu_height(
XtManageChild(id); XtManageChild(id);
/* /*
* Now find the menu item that is the furthest down, and get it's position. * Now find the menu item that is the furthest down, and get its position.
*/ */
maxy = 0; maxy = 0;
for (mp = root_menu; mp != NULL; mp = mp->next) for (mp = root_menu; mp != NULL; mp = mp->next)
@ -1550,7 +1550,7 @@ submenu_change(
XtSetValues(mp->id, args, n); XtSetValues(mp->id, args, n);
} }
# ifdef FEAT_BEVAL_GUI # ifdef FEAT_BEVAL_GUI
/* If we have a tooltip, then we need to change it's font */ /* If we have a tooltip, then we need to change its font */
if (mp->tip != NULL) if (mp->tip != NULL)
{ {
Arg args[2]; Arg args[2];
@ -1568,7 +1568,7 @@ submenu_change(
{ {
gui_motif_menu_fontlist(mp->id); gui_motif_menu_fontlist(mp->id);
#ifdef FEAT_BEVAL_GUI #ifdef FEAT_BEVAL_GUI
/* If we have a tooltip, then we need to change it's font */ /* If we have a tooltip, then we need to change its font */
if (mp->tip != NULL) if (mp->tip != NULL)
{ {
Arg args[1]; Arg args[1];
@ -2089,7 +2089,7 @@ set_fontlist(Widget id)
{ {
XtUnmanageChild(id); XtUnmanageChild(id);
XtVaSetValues(id, XmNfontList, fl, NULL); XtVaSetValues(id, XmNfontList, fl, NULL);
/* We should force the widget to recalculate it's /* We should force the widget to recalculate its
* geometry now. */ * geometry now. */
XtManageChild(id); XtManageChild(id);
} }
@ -2108,7 +2108,7 @@ set_fontlist(Widget id)
{ {
XtUnmanageChild(id); XtUnmanageChild(id);
XtVaSetValues(id, XmNfontList, fl, NULL); XtVaSetValues(id, XmNfontList, fl, NULL);
/* We should force the widget to recalculate it's /* We should force the widget to recalculate its
* geometry now. */ * geometry now. */
XtManageChild(id); XtManageChild(id);
} }
@ -3407,7 +3407,7 @@ gui_motif_menu_fontlist(Widget id UNUSED)
{ {
XtUnmanageChild(id); XtUnmanageChild(id);
XtVaSetValues(id, XmNfontList, fl, NULL); XtVaSetValues(id, XmNfontList, fl, NULL);
/* We should force the widget to recalculate it's /* We should force the widget to recalculate its
* geometry now. */ * geometry now. */
XtManageChild(id); XtManageChild(id);
} }
@ -3428,7 +3428,7 @@ gui_motif_menu_fontlist(Widget id UNUSED)
{ {
XtUnmanageChild(id); XtUnmanageChild(id);
XtVaSetValues(id, XmNfontList, fl, NULL); XtVaSetValues(id, XmNfontList, fl, NULL);
/* We should force the widget to recalculate it's /* We should force the widget to recalculate its
* geometry now. */ * geometry now. */
XtManageChild(id); XtManageChild(id);
} }

View File

@ -5658,7 +5658,7 @@ get_work_area(RECT *spi_rect)
HMONITOR mon; HMONITOR mon;
MONITORINFO moninfo; MONITORINFO moninfo;
/* work out which monitor the window is on, and get *it's* work area */ /* work out which monitor the window is on, and get *its* work area */
mon = MonitorFromWindow(s_hwnd, MONITOR_DEFAULTTOPRIMARY); mon = MonitorFromWindow(s_hwnd, MONITOR_DEFAULTTOPRIMARY);
if (mon != NULL) if (mon != NULL)
{ {

View File

@ -50,7 +50,7 @@
* implementation. Also missing in Motif 1.2 and earlier. * implementation. Also missing in Motif 1.2 and earlier.
* *
* We neither use XmeGetPixmapData or _XmGetPixmapData, since with LessTif the * We neither use XmeGetPixmapData or _XmGetPixmapData, since with LessTif the
* pixmap will not appear in it's caches properly. We cache the interesting * pixmap will not appear in its caches properly. We cache the interesting
* values in XmEnhancedButtonPart instead ourself. * values in XmEnhancedButtonPart instead ourself.
*/ */
#if defined(LESSTIF_VERSION) || (XmVersion <= 1002) #if defined(LESSTIF_VERSION) || (XmVersion <= 1002)

View File

@ -113,7 +113,7 @@ static tcl_info tclinfo = { NULL, 0, 0, 0, 0, NULL, NULL };
/* /*
* List of Tcl interpreters who reference a vim window or buffer. * List of Tcl interpreters who reference a vim window or buffer.
* Each buffer and window has it's own list in the w_tcl_ref or b_tcl_ref * Each buffer and window has its own list in the w_tcl_ref or b_tcl_ref
* struct member. We need this because Tcl can create sub-interpreters with * struct member. We need this because Tcl can create sub-interpreters with
* the "interp" command, and each interpreter can reference all windows and * the "interp" command, and each interpreter can reference all windows and
* buffers. * buffers.

View File

@ -192,7 +192,7 @@
# define mch_access(n, p) access((n), (p)) # define mch_access(n, p) access((n), (p))
# endif # endif
# define mch_fstat(n, p) fstat((n), (p)) # define mch_fstat(n, p) fstat((n), (p))
# ifdef MSWIN /* has it's own mch_stat() function */ # ifdef MSWIN /* has its own mch_stat() function */
# define mch_stat(n, p) vim_stat((n), (p)) # define mch_stat(n, p) vim_stat((n), (p))
# else # else
# ifdef STAT_IGNORES_SLASH # ifdef STAT_IGNORES_SLASH

View File

@ -941,7 +941,7 @@ mch_exit(int r)
* getch() will return immediately rather than wait for a return. You * getch() will return immediately rather than wait for a return. You
* lose editing features though. * lose editing features though.
* *
* Cooked: This function returns the designate file pointer to it's normal, * Cooked: This function returns the designate file pointer to its normal,
* wait for a <CR> mode. This is exactly like raw() except that * wait for a <CR> mode. This is exactly like raw() except that
* it sends a 0 to the console to make it back into a CON: from a RAW: * it sends a 0 to the console to make it back into a CON: from a RAW:
*/ */
@ -1387,7 +1387,7 @@ mch_breakcheck(int force)
got_int = TRUE; got_int = TRUE;
} }
/* this routine causes manx to use this Chk_Abort() rather than it's own */ /* this routine causes manx to use this Chk_Abort() rather than its own */
/* otherwise it resets our ^C when doing any I/O (even when Enable_Abort */ /* otherwise it resets our ^C when doing any I/O (even when Enable_Abort */
/* is zero). Since we want to check for our own ^C's */ /* is zero). Since we want to check for our own ^C's */

View File

@ -15,7 +15,7 @@ $! and call/subroutine/endsubroutine constructs, because I can still
$! remember when DCL didn't have them, and I wanted this to be as $! remember when DCL didn't have them, and I wanted this to be as
$! portable as possible, so... If you want to structure it nicer for $! portable as possible, so... If you want to structure it nicer for
$! your own use, please feel free to do so. However, please only $! your own use, please feel free to do so. However, please only
$! distribute it in it's original form. $! distribute it in its original form.
$! $!
$! I wrote it in DCL for portability and ease of use - a C version $! I wrote it in DCL for portability and ease of use - a C version
$! would definitely run faster, but then I'd have to deal with compiler $! would definitely run faster, but then I'd have to deal with compiler

View File

@ -6223,7 +6223,7 @@ screen_line(
* first highlighted character. The stop-highlighting code must * first highlighted character. The stop-highlighting code must
* be written with the cursor just after the last highlighted * be written with the cursor just after the last highlighted
* character. * character.
* Overwriting a character doesn't remove it's highlighting. Need * Overwriting a character doesn't remove its highlighting. Need
* to clear the rest of the line, and force redrawing it * to clear the rest of the line, and force redrawing it
* completely. * completely.
*/ */

View File

@ -357,9 +357,9 @@ free_search_patterns(void)
* Save and restore the search pattern for incremental highlight search * Save and restore the search pattern for incremental highlight search
* feature. * feature.
* *
* It's similar but differnt from save_search_patterns() and * It's similar to but different from save_search_patterns() and
* restore_search_patterns(), because the search pattern must be restored when * restore_search_patterns(), because the search pattern must be restored when
* cannceling incremental searching even if it's called inside user functions. * canceling incremental searching even if it's called inside user functions.
*/ */
void void
save_last_search_pattern(void) save_last_search_pattern(void)
@ -2869,7 +2869,7 @@ findpar(
} }
#endif #endif
/* POSIX has it's own ideas of what a paragraph boundary is and it /* POSIX has its own ideas of what a paragraph boundary is and it
* doesn't match historical Vi: It also stops at a "{" in the * doesn't match historical Vi: It also stops at a "{" in the
* first column and at an empty line. */ * first column and at an empty line. */
if (!first && did_skip && (startPS(curr, what, both) if (!first && did_skip && (startPS(curr, what, both)

View File

@ -2686,7 +2686,7 @@ use_midword(slang_T *lp, win_T *wp)
/* /*
* Find the region "region[2]" in "rp" (points to "sl_regions"). * Find the region "region[2]" in "rp" (points to "sl_regions").
* Each region is simply stored as the two characters of it's name. * Each region is simply stored as the two characters of its name.
* Returns the index if found (first is 0), REGION_ALL if not found. * Returns the index if found (first is 0), REGION_ALL if not found.
*/ */
static int static int

View File

@ -3784,7 +3784,7 @@ get_pfxlist(
if (get_affitem(affile->af_flagtype, &p) != 0) if (get_affitem(affile->af_flagtype, &p) != 0)
{ {
/* A flag is a postponed prefix flag if it appears in "af_pref" /* A flag is a postponed prefix flag if it appears in "af_pref"
* and it's ID is not zero. */ * and its ID is not zero. */
vim_strncpy(key, prevp, p - prevp); vim_strncpy(key, prevp, p - prevp);
hi = hash_find(&affile->af_pref, key); hi = hash_find(&affile->af_pref, key);
if (!HASHITEM_EMPTY(hi)) if (!HASHITEM_EMPTY(hi))

View File

@ -54,7 +54,7 @@ What you can use (see test_assert.vim for an example):
TO ADD A SCREEN DUMP TEST: TO ADD A SCREEN DUMP TEST:
Mostly the same as writing a new style test. Additonally, see help on Mostly the same as writing a new style test. Additionally, see help on
"terminal-dumptest". Put the reference dump in "dumps/Test_func_name.dump". "terminal-dumptest". Put the reference dump in "dumps/Test_func_name.dump".

View File

@ -792,6 +792,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
528,
/**/ /**/
527, 527,
/**/ /**/

View File

@ -1270,7 +1270,7 @@ enum auto_event
EVENT_BUFWRITECMD, // write buffer using command EVENT_BUFWRITECMD, // write buffer using command
EVENT_BUFWRITEPOST, // after writing a buffer EVENT_BUFWRITEPOST, // after writing a buffer
EVENT_BUFWRITEPRE, // before writing a buffer EVENT_BUFWRITEPRE, // before writing a buffer
EVENT_CMDLINECHANGED, // command line was modified*/ EVENT_CMDLINECHANGED, // command line was modified
EVENT_CMDLINEENTER, // after entering the command line EVENT_CMDLINEENTER, // after entering the command line
EVENT_CMDLINELEAVE, // before leaving the command line EVENT_CMDLINELEAVE, // before leaving the command line
EVENT_CMDUNDEFINED, // command undefined EVENT_CMDUNDEFINED, // command undefined