mirror of
https://github.com/vim/vim
synced 2025-07-16 01:01:58 +00: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:
committed by
Bram Moolenaar
parent
b7f6f93475
commit
b49dfd0cf2
@ -823,10 +823,10 @@
|
||||
* +mouse_gpm Unix only: Include code for Linux console mouse
|
||||
* handling.
|
||||
* +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
|
||||
* 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).
|
||||
* Always included, since either FEAT_MOUSE_XTERM or
|
||||
* DOS_MOUSE is defined.
|
||||
|
@ -4518,7 +4518,7 @@ gui_mch_add_menu(
|
||||
// when we add a BMenu to another Menu, it creates the interconnecting BMenuItem
|
||||
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);
|
||||
|
||||
}
|
||||
|
@ -334,7 +334,7 @@ CVim::SendKeys(BSTR keys)
|
||||
/* Reject strings too long to fit in the input buffer. Allow 10 bytes
|
||||
* space to cover for the (remote) possibility that characters may enter
|
||||
* 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.
|
||||
*/
|
||||
if ((int)(STRLEN(str)) > (vim_free_in_input_buf() - 10))
|
||||
|
@ -9,7 +9,7 @@
|
||||
/*
|
||||
* 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
|
||||
* async debuging.
|
||||
* async debugging.
|
||||
*/
|
||||
|
||||
#include "vim.h"
|
||||
|
@ -28,7 +28,7 @@
|
||||
*/
|
||||
#if defined(__APPLE_CC__) // for Project Builder and ...
|
||||
# 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>
|
||||
// && defined(HAVE_CURSE)
|
||||
// The curses.h from MacOS X provides by default some BACKWARD compatibility
|
||||
|
@ -1993,7 +1993,7 @@ typedef struct {
|
||||
|
||||
/*
|
||||
* 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
|
||||
{
|
||||
@ -4780,7 +4780,7 @@ typedef struct {
|
||||
int cts_text_prop_count; // number of text props; when zero
|
||||
// cts_text_props is not used
|
||||
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_prop_lines; // nr of properties above or below
|
||||
int cts_first_char; // width text props above the line
|
||||
|
@ -14,8 +14,8 @@
|
||||
|
||||
#if defined(SASC) && SASC < 658
|
||||
/*
|
||||
* The SAS C compiler has a bug that makes typedefs being forgot in include
|
||||
* files. Has been fixed in version 6.58.
|
||||
* The SAS C compiler has a bug that makes typedefs being forgotten
|
||||
* in include files. Has been fixed in version 6.58.
|
||||
*/
|
||||
typedef unsigned char char_u;
|
||||
#endif
|
||||
|
@ -162,7 +162,7 @@ endfunc
|
||||
|
||||
" Test for menu item completion in command line
|
||||
func Test_menu_expand()
|
||||
" Create the menu itmes for test
|
||||
" Create the menu items for test
|
||||
menu Dummy.Nothing lll
|
||||
for i in range(1, 4)
|
||||
let m = 'menu Xmenu.A' .. i .. '.A' .. i
|
||||
|
@ -6,7 +6,7 @@ CheckMSWindows
|
||||
source mouse.vim
|
||||
|
||||
" 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
|
||||
" will be sent in reverse order to release the keys.
|
||||
func SendKeyGroup(keygroup)
|
||||
@ -19,7 +19,7 @@ func SendKeyGroup(keygroup)
|
||||
endfunc
|
||||
|
||||
" 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)
|
||||
let args = { }
|
||||
let args.keycode = a:key
|
||||
@ -359,7 +359,7 @@ func s:LoopTestKeyArray(arr)
|
||||
" and when the virtual termcap maps the character
|
||||
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 key = kcodes[0]
|
||||
for key in kcodes
|
||||
|
@ -1570,7 +1570,7 @@ func Test_proptype_substitute_join()
|
||||
call prop_add(2, 7, {'length': 2, 'type': 'number'})
|
||||
call prop_add(3, 6, {'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.
|
||||
let expected = [
|
||||
\ #{type_bufnr: 0, id: 0, col: 6, end: 1, type: 'number', length: 2, start: 1},
|
||||
|
@ -695,6 +695,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1453,
|
||||
/**/
|
||||
1452,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user