changeset 32244:533e36e02a68 v9.0.1453

patch 9.0.1453: typos in source code and tests Commit: https://github.com/vim/vim/commit/b49dfd0cf296623af2d756cefc3e73b5b307734e Author: Dominique Pelle <dominique.pelle@gmail.com> Date: Fri Apr 14 21:54:25 2023 +0100 patch 9.0.1453: typos in source code and tests Problem: Typos in source code and tests. Solution: Fi the typos. (Dominique Pell?, closes https://github.com/vim/vim/issues/12217)
author Bram Moolenaar <Bram@vim.org>
date Fri, 14 Apr 2023 23:00:07 +0200
parents bf6556bfd412
children 821b3f72bfc7
files src/feature.h src/gui_haiku.cc src/if_ole.cpp src/logfile.c src/os_mac.h src/structs.h src/termdefs.h src/testdir/test_menu.vim src/testdir/test_mswin_event.vim src/testdir/test_textprop.vim src/version.c
diffstat 11 files changed, 17 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/src/feature.h
+++ b/src/feature.h
@@ -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.
--- a/src/gui_haiku.cc
+++ b/src/gui_haiku.cc
@@ -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);
 
 	}
--- a/src/if_ole.cpp
+++ b/src/if_ole.cpp
@@ -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))
--- a/src/logfile.c
+++ b/src/logfile.c
@@ -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"
--- a/src/os_mac.h
+++ b/src/os_mac.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
--- a/src/structs.h
+++ b/src/structs.h
@@ -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
--- a/src/termdefs.h
+++ b/src/termdefs.h
@@ -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
--- a/src/testdir/test_menu.vim
+++ b/src/testdir/test_menu.vim
@@ -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
--- a/src/testdir/test_mswin_event.vim
+++ b/src/testdir/test_mswin_event.vim
@@ -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
--- a/src/testdir/test_textprop.vim
+++ b/src/testdir/test_textprop.vim
@@ -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},
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1453,
+/**/
     1452,
 /**/
     1451,