0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 9.0.1453: typos in source code and tests

Problem:    Typos in source code and tests.
Solution:   Fi the typos. (Dominique Pellé, closes #12217)
This commit is contained in:
Dominique Pelle
2023-04-14 21:54:25 +01:00
committed by Bram Moolenaar
parent b7f6f93475
commit b49dfd0cf2
11 changed files with 17 additions and 15 deletions

View File

@@ -823,10 +823,10 @@
* +mouse_gpm Unix only: Include code for Linux console mouse * +mouse_gpm Unix only: Include code for Linux console mouse
* handling. * handling.
* +mouse_pterm PTerm mouse support for QNX * +mouse_pterm PTerm mouse support for QNX
* +mouse_sgr Unix only: Include code for for SGR-styled mouse. * +mouse_sgr Unix only: Include code for SGR-styled mouse.
* +mouse_sysmouse Unix only: Include code for FreeBSD and DragonFly * +mouse_sysmouse Unix only: Include code for FreeBSD and DragonFly
* console mouse handling. * console mouse handling.
* +mouse_urxvt Unix only: Include code for for urxvt mouse handling. * +mouse_urxvt Unix only: Include code for urxvt mouse handling.
* +mouse Any mouse support (any of the above enabled). * +mouse Any mouse support (any of the above enabled).
* Always included, since either FEAT_MOUSE_XTERM or * Always included, since either FEAT_MOUSE_XTERM or
* DOS_MOUSE is defined. * DOS_MOUSE is defined.

View File

@@ -4518,7 +4518,7 @@ gui_mch_add_menu(
// when we add a BMenu to another Menu, it creates the interconnecting BMenuItem // when we add a BMenu to another Menu, it creates the interconnecting BMenuItem
tmp->AddItem(bmenu); tmp->AddItem(bmenu);
// Now its safe to query the menu for the associated MenuItem.... // Now it's safe to query the menu for the associated MenuItem...
menu->id = tmp->FindItem((const char *) menu->dname); menu->id = tmp->FindItem((const char *) menu->dname);
} }

View File

@@ -334,7 +334,7 @@ CVim::SendKeys(BSTR keys)
/* Reject strings too long to fit in the input buffer. Allow 10 bytes /* Reject strings too long to fit in the input buffer. Allow 10 bytes
* space to cover for the (remote) possibility that characters may enter * space to cover for the (remote) possibility that characters may enter
* the input buffer between now and when the WM_OLE message is actually * the input buffer between now and when the WM_OLE message is actually
* processed. If more that 10 characters enter the input buffer in that * processed. If more than 10 characters enter the input buffer in that
* time, the WM_OLE processing will simply fail to insert the characters. * time, the WM_OLE processing will simply fail to insert the characters.
*/ */
if ((int)(STRLEN(str)) > (vim_free_in_input_buf() - 10)) if ((int)(STRLEN(str)) > (vim_free_in_input_buf() - 10))

View File

@@ -9,7 +9,7 @@
/* /*
* Implements logging. Originally intended for the channel feature, which is * Implements logging. Originally intended for the channel feature, which is
* why the "ch_" prefix is used. Also useful for any kind of low-level and * why the "ch_" prefix is used. Also useful for any kind of low-level and
* async debuging. * async debugging.
*/ */
#include "vim.h" #include "vim.h"

View File

@@ -28,7 +28,7 @@
*/ */
#if defined(__APPLE_CC__) // for Project Builder and ... #if defined(__APPLE_CC__) // for Project Builder and ...
# include <unistd.h> # include <unistd.h>
// Get stat.h or something similar. Comment: How come some OS get in in vim.h // Get stat.h or something similar. Comment: How come some OS get in vim.h
# include <sys/stat.h> # include <sys/stat.h>
// && defined(HAVE_CURSE) // && defined(HAVE_CURSE)
// The curses.h from MacOS X provides by default some BACKWARD compatibility // The curses.h from MacOS X provides by default some BACKWARD compatibility

View File

@@ -1993,7 +1993,7 @@ typedef struct {
/* /*
* Info about an encountered script. * Info about an encountered script.
* When sn_state has the SN_STATE_NOT_LOADED is has not been sourced yet. * When sn_state has SN_STATE_NOT_LOADED, it has not been sourced yet.
*/ */
typedef struct typedef struct
{ {
@@ -4780,7 +4780,7 @@ typedef struct {
int cts_text_prop_count; // number of text props; when zero int cts_text_prop_count; // number of text props; when zero
// cts_text_props is not used // cts_text_props is not used
textprop_T *cts_text_props; // text props (allocated) textprop_T *cts_text_props; // text props (allocated)
char cts_has_prop_with_text; // TRUE if if a property inserts text char cts_has_prop_with_text; // TRUE if a property inserts text
int cts_cur_text_width; // width of current inserted text int cts_cur_text_width; // width of current inserted text
int cts_prop_lines; // nr of properties above or below int cts_prop_lines; // nr of properties above or below
int cts_first_char; // width text props above the line int cts_first_char; // width text props above the line

View File

@@ -14,8 +14,8 @@
#if defined(SASC) && SASC < 658 #if defined(SASC) && SASC < 658
/* /*
* The SAS C compiler has a bug that makes typedefs being forgot in include * The SAS C compiler has a bug that makes typedefs being forgotten
* files. Has been fixed in version 6.58. * in include files. Has been fixed in version 6.58.
*/ */
typedef unsigned char char_u; typedef unsigned char char_u;
#endif #endif

View File

@@ -162,7 +162,7 @@ endfunc
" Test for menu item completion in command line " Test for menu item completion in command line
func Test_menu_expand() func Test_menu_expand()
" Create the menu itmes for test " Create the menu items for test
menu Dummy.Nothing lll menu Dummy.Nothing lll
for i in range(1, 4) for i in range(1, 4)
let m = 'menu Xmenu.A' .. i .. '.A' .. i let m = 'menu Xmenu.A' .. i .. '.A' .. i

View File

@@ -6,7 +6,7 @@ CheckMSWindows
source mouse.vim source mouse.vim
" Helper function for sending a grouped sequence of low level key presses " Helper function for sending a grouped sequence of low level key presses
" The modifer key(s) can be included as VK Key Codes in the sequence " The modifier key(s) can be included as VK Key Codes in the sequence
" Keydown events will be sent, to to the end of the group, then keyup events " Keydown events will be sent, to to the end of the group, then keyup events
" will be sent in reverse order to release the keys. " will be sent in reverse order to release the keys.
func SendKeyGroup(keygroup) func SendKeyGroup(keygroup)
@@ -19,7 +19,7 @@ func SendKeyGroup(keygroup)
endfunc endfunc
" Send individual key press and release events. " Send individual key press and release events.
" the modifers for the key press can be specified in the modifiers arg. " the modifiers for the key press can be specified in the modifiers arg.
func SendKeyWithModifiers(key, modifiers) func SendKeyWithModifiers(key, modifiers)
let args = { } let args = { }
let args.keycode = a:key let args.keycode = a:key
@@ -359,7 +359,7 @@ func s:LoopTestKeyArray(arr)
" and when the virtual termcap maps the character " and when the virtual termcap maps the character
call assert_equal(0, mod_mask, $"key = {kstr}") call assert_equal(0, mod_mask, $"key = {kstr}")
" Send as a single key press with a modifers mask. " Send as a single key press with a modifiers mask.
let modifiers = 0 let modifiers = 0
let key = kcodes[0] let key = kcodes[0]
for key in kcodes for key in kcodes

View File

@@ -1570,7 +1570,7 @@ func Test_proptype_substitute_join()
call prop_add(2, 7, {'length': 2, 'type': 'number'}) call prop_add(2, 7, {'length': 2, 'type': 'number'})
call prop_add(3, 6, {'length': 2, 'type': 'number'}) call prop_add(3, 6, {'length': 2, 'type': 'number'})
call prop_add(4, 7, {'length': 2, 'type': 'number'}) call prop_add(4, 7, {'length': 2, 'type': 'number'})
" The highlighted "is" in line 1, 2 and 4 is kept and ajudsted. " The highlighted "is" in line 1, 2 and 4 is kept and adjusted.
" The highlighted "is" in line 3 is deleted. " The highlighted "is" in line 3 is deleted.
let expected = [ let expected = [
\ #{type_bufnr: 0, id: 0, col: 6, end: 1, type: 'number', length: 2, start: 1}, \ #{type_bufnr: 0, id: 0, col: 6, end: 1, type: 'number', length: 2, start: 1},

View File

@@ -695,6 +695,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 */
/**/
1453,
/**/ /**/
1452, 1452,
/**/ /**/