]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.1886: Various Typos v9.0.1886
authorChristian Brabandt <cb@256bit.org>
Sat, 9 Sep 2023 09:23:50 +0000 (11:23 +0200)
committerChristian Brabandt <cb@256bit.org>
Sat, 9 Sep 2023 09:31:38 +0000 (11:31 +0200)
Problem:  Various Typos
Solution: Fix Typos

This is a collection of typo related commits.

closes: #12753
closes: #13016

Co-authored-by: Adri Verhoef <a3@a3.xs4all.nl>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Co-authored-by: Viktor Szépe <viktor@szepe.net>
Co-authored-by: nuid64 <lvkuzvesov@proton.me>
Co-authored-by: Meng Xiangzhuo <aumo@foxmail.com>
Co-authored-by: Dominique Pellé <dominique.pelle@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
33 files changed:
runtime/doc/builtin.txt
runtime/doc/insert.txt
runtime/doc/windows.txt
runtime/ftplugin/zig.vim
src/Makefile
src/errors.h
src/ex_cmds.c
src/findfile.c
src/gui_gtk_x11.c
src/insexpand.c
src/main.c
src/mbyte.c
src/mouse.c
src/po/README.txt
src/po/README_mingw.txt
src/sound.c
src/term.c
src/testdir/test_autocmd.vim
src/testdir/test_channel.vim
src/testdir/test_edit.vim
src/testdir/test_functions.vim
src/testdir/test_highlight.vim
src/testdir/test_listdict.vim
src/testdir/test_mksession.vim
src/testdir/test_normal.vim
src/testdir/test_substitute.vim
src/testdir/test_vim9_class.vim
src/testdir/test_vimscript.vim
src/testdir/test_virtualedit.vim
src/typval.c
src/version.c
src/vim9.h
src/vim9type.c

index ef99ca60a1bd1cc6452d5cda0aaceb7b9966cacf..a52a3df0b44b691eae5fdf81734a7bc15feb8ef2 100644 (file)
@@ -2207,7 +2207,7 @@ environ()                                         *environ()*
 
 err_teapot([{expr}])                                   *err_teapot()*
                Produce an error with number 418, needed for implementation of
-               RFC 2325.
+               RFC 2324.
                If {expr} is present and it is TRUE error 503 is given,
                indicating that coffee is temporarily not available.
                If {expr} is present it must be a String.
@@ -6786,7 +6786,7 @@ printf({fmt}, {expr1} ...)                                *printf()*
                                                        *printf-$*
                In certain languages, error and informative messages are
                more readable when the order of words is different from the
-               corresponding message in English. To accomodate translations
+               corresponding message in English. To accommodate translations
                having a different word order, positional arguments may be
                used to indicate this. For instance: >
 
index 6248f742f7006ef14f6d639ca2468c00a22849ac..8696e912f3ba0c3118122d2956d9322ed73202b6 100644 (file)
@@ -127,7 +127,7 @@ CTRL-R {register}                           *i_CTRL-R*
                        '/'     the last search pattern
                        ':'     the last command-line
                        '.'     the last inserted text
-                                                       *i_CTRL-R_-*
+                                                       *i_CTRL-R_-*
                        '-'     the last small (less than a line) delete
                                register. This is repeatable using |.| since
                                it remembers the register to put instead of
index 924a932507d1d0339ef8cd418a4dbeed5022663c..74cec42303c1b88105298fa687f82f5ec607700c 100644 (file)
@@ -189,7 +189,7 @@ CTRL-W v                                            *CTRL-W_v*
                it doesn't!
 
 CTRL-W n                                               *CTRL-W_n*
-CTRL-W CTRL_N                                          *CTRL-W_CTRL-N*
+CTRL-W CTRL-N                                          *CTRL-W_CTRL-N*
 :[N]new [++opt] [+cmd]                                 *:new*
                Create a new window and start editing an empty file in it.
                Make new window N high (default is to use half the existing
index 2a081980ccb2d7b87b325949be61067505fb56f7..cfd7102b8da3a3e7341a3d660b027c04968625f0 100644 (file)
@@ -39,7 +39,7 @@ endif
 
 let &l:define='\v(<fn>|<const>|<var>|^\s*\#\s*define)'
 
-" Safety check: don't execute zip from current directory
+" Safety check: don't execute zig from current directory
 if !exists('g:zig_std_dir') && exists('*json_decode') &&
     \  executable('zig') && get(g:, 'zig_exec', get(g:, 'plugin_exec', 0))
     \ && (fnamemodify(exepath("zig"), ":p:h") != s:tmp_cwd
index de94c82c4a611770309a1aab7b5cd5c932534e4d..4d0a5ebad573cf81b8516e8a4ad806e3216deedc 100644 (file)
@@ -345,7 +345,7 @@ CClink = $(CC)
 # --enable-gui=gtk or leave out --enable-gnome-check.
 #
 # GNOME makes sense only for GTK+ 2.  Avoid use of --enable-gnome-check with
-# GTK+ 3 build, as the functionality of GNOME is already incooperated into
+# GTK+ 3 build, as the functionality of GNOME is already incorporated into
 # GTK+ 3.
 #
 # If the selected GUI isn't found, the GUI is disabled automatically
index 57769062b1c4d30fcffd24b03519790d28f4b7ed..0d53fa84cd3b5f93174cdbf4c37da82e359bd0ef 100644 (file)
@@ -3516,7 +3516,7 @@ EXTERN char e_invalid_format_specifier_str[]
 EXTERN char e_member_str_type_mismatch_expected_str_but_got_str[]
        INIT(= N_("E1406: Member \"%s\": type mismatch, expected %s but got %s"));
 EXTERN char e_method_str_type_mismatch_expected_str_but_got_str[]
-       INIT(= N_("E1407: Member \"%s\": type mismatch, expected %s but got %s"));
+       INIT(= N_("E1407: Method \"%s\": type mismatch, expected %s but got %s"));
 EXTERN char e_aptypes_is_null_nr_str[]
        INIT(= "E1408: Internal error: ap_types or ap_types[idx] is NULL: %d: %s");
 EXTERN char e_interface_static_direct_access_str[]
index 566ed7dad32d0bb6749df002a93de0b69972de12..3544092d65b1184b1df704f97b7919d2f89de879 100644 (file)
@@ -2647,9 +2647,9 @@ do_ecmd(
     }
 
 
-     // End Visual mode before switching to another buffer, so the text can be
-     // copied into the GUI selection buffer.
-     // Careful: may trigger ModeChanged() autocommand
+    // End Visual mode before switching to another buffer, so the text can be
+    // copied into the GUI selection buffer.
+    // Careful: may trigger ModeChanged() autocommand
 
     // Should we block autocommands here?
     reset_VIsual();
index 7287b10d73a3aef16d16235cffa9908e8448c3c6..246a81898a5063d316a02a5e05a1f45f556ac819 100644 (file)
@@ -48,8 +48,8 @@
  *
  * ATTENTION:
  * ==========
- *     Also we use an allocated search context here, this functions are NOT
- *     thread-safe!!!!!
+ *     Also we use an allocated search context here, these functions are NOT
+ *     thread-safe!
  *
  *     To minimize parameter passing (or because I'm to lazy), only the
  *     external visible functions get a search context as a parameter. This is
index 3f0cf8c5aaccbe16b5da4102f6074bb916b888a3..3fd6f3a9048834d87c5b4014377926ba1edb8601 100644 (file)
@@ -4002,8 +4002,8 @@ gui_mch_init(void)
     }
 
     // Real windows can get focus ... GtkPlug, being a mere container can't,
-    // only its widgets.  Arguably, this could be common code and we not use
-    // the window focus at all, but let's be safe.
+    // only its widgets.  Arguably, this could be common code and we do not
+    // use the window focus at all, but let's be safe.
     if (gtk_socket_id == 0)
     {
        g_signal_connect(G_OBJECT(gui.mainwin), "focus-out-event",
index b767b4efddb01d025c97b28491031c2c6d709559..3b06ee02de5e587559e8bd2eaeb15891e2bbffd1 100644 (file)
@@ -3789,7 +3789,7 @@ ins_compl_get_exp(pos_T *ini)
        st.found_all = FALSE;
        st.ins_buf = curbuf;
        vim_free(st.e_cpt_copy);
-       // Make a copy of 'complete', if case the buffer is wiped out.
+       // Make a copy of 'complete', in case the buffer is wiped out.
        st.e_cpt_copy = vim_strsave((compl_cont_status & CONT_LOCAL)
                                            ? (char_u *)"." : curbuf->b_p_cpt);
        st.e_cpt = st.e_cpt_copy == NULL ? (char_u *)"" : st.e_cpt_copy;
index a40c3a66606ea0ece2d6028cc46de82667378486..770726f6d3a80c1747ba13cc1cd76cbfaca8a1c4 100644 (file)
@@ -1548,7 +1548,7 @@ main_loop(
                    && !skip_term_loop)
            {
                // If terminal_loop() returns OK we got a key that is handled
-               // in Normal model.  With FAIL we first need to position the
+               // in Normal mode.  With FAIL we first need to position the
                // cursor and the screen needs to be redrawn.
                if (terminal_loop(TRUE) == OK)
                    normal_cmd(&oa, TRUE);
index a9603cbf2a90a711c3ccb72433c31ea2e26bcaee..c4d1ddb3b873eb112d904dfc44926968e92c97a5 100644 (file)
@@ -4050,7 +4050,7 @@ utf_allow_break_before(int cc)
        0x2021, // ‡ double dagger
        0x2026, // … horizontal ellipsis
        0x2030, // ‰ per mille sign
-       0x2031, // ‱ per then thousand sign
+       0x2031, // ‱ per ten thousand sign
        0x203c, // ‼ double exclamation mark
        0x2047, // ⁇ double question mark
        0x2048, // ⁈ question exclamation mark
index c9e96c9cab33803c32423b16d8c5b11b5bebe387..aa06e6cb509e347d83841720d64f54643d5ab822 100644 (file)
@@ -2162,7 +2162,7 @@ retnomove:
 do_mousescroll_horiz(long_u leftcol)
 {
     if (curwin->w_p_wrap)
-       return FALSE;  // no wrapping, no scrolling
+       return FALSE;  // no horizontal scrolling when wrapping
 
     if (curwin->w_leftcol == (colnr_T)leftcol)
        return FALSE;  // already there
index 8ec1b5946536d5eb3095436649f2d2f9a8ae03ab..039038be71cf5d17fef23f93f9afee0be8841a41 100644 (file)
@@ -41,7 +41,7 @@ You might have to do the commands manually.  Example:
 WHEN THERE IS A MISTAKE
 
 If you find there is a mistake in one of the translations, please report this
-to the maintainer of the translation.  His/her E-mail address is in the
+to the maintainer of the translation.  His/her e-mail address is in the
 comments at the start of the file.  You can also see this with the ":messages"
 command in Vim when the translation is being used.
 
index a98af578acc3bead6d3ce761714093e6cc460dfb..abb5cd7cbb22eb1c95937a7a63bd0592cfb6601e 100644 (file)
@@ -60,7 +60,7 @@ the same as in the Unix case, only the commands change):
 
     There is one special message:
        msgid "Messages maintainer: The Vim Project"
-    You should include your name and E-mail address instead, for example:
+    You should include your name and e-mail address instead, for example:
        msgstr "Berichten übersetzt bei: John Doe <john@doe.org>"
 
 (3) Clean up
index a968ecd2e03c1c73ccd9315c7cf96decada5385b..6e949e85bc1bbff3108cdaaf5f87e285a6c62197 100644 (file)
@@ -17,7 +17,7 @@
 
 static long        sound_id = 0;
 
-// soundcb_T is typdef'ed in proto/sound.pro
+// soundcb_T is typedef'ed in proto/sound.pro
 
 struct soundcb_S {
     callback_T snd_callback;
index 15420450e1a89043f2c4c0d7495ad5750ed2b88b..2dbfdad7d48f33db8679a9d33dc806d4867e8b23 100644 (file)
@@ -6655,7 +6655,7 @@ replace_termcodes(
 #ifdef FEAT_EVAL
            /*
             * Change <SID>Func to K_SNR <script-nr> _Func.  This name is used
-            * for script-locla user functions.
+            * for script-local user functions.
             * (room: 5 * 6 = 30 bytes; needed: 3 + <nr> + 1 <= 14)
             * Also change <SID>name.Func to K_SNR <import-script-nr> _Func.
             * Only if "name" is recognized as an import.
index b74dda956dad659fdb1b98abc6616cbd8db1c11a..1b9ecc94d15039c408d6fc675a7afee9db4e03c4 100644 (file)
@@ -2025,8 +2025,8 @@ endfunc
 " Test for BufUnload autocommand that unloads all the other buffers
 func Test_bufunload_all()
   let g:test_is_flaky = 1
-  call writefile(['Test file Xxx1'], 'Xxx1', 'D')"
-  call writefile(['Test file Xxx2'], 'Xxx2', 'D')"
+  call writefile(['Test file Xxx1'], 'Xxx1', 'D')
+  call writefile(['Test file Xxx2'], 'Xxx2', 'D')
 
   let content =<< trim [CODE]
     func UnloadAllBufs()
index 6be2137c36dda55731071e3f1a6797ad8b6a2527..5a350832486fa20cd6d5c0fccbc19f4aee82ea31 100644 (file)
@@ -524,7 +524,7 @@ func Test_connect_waittime()
   let start = reltime()
   let handle = ch_open('localhost:9876', s:chopt)
   if ch_status(handle) != "fail"
-    " Oops, port does exists.
+    " Oops, port exists.
     call ch_close(handle)
   else
     let elapsed = reltime(start)
@@ -538,7 +538,7 @@ func Test_connect_waittime()
   try
     let handle = ch_open('localhost:9867', {'waittime': 500})
     if ch_status(handle) != "fail"
-      " Oops, port does exists.
+      " Oops, port exists.
       call ch_close(handle)
     else
       " Failed connection should wait about 500 msec.  Can be longer if the
index 3ce542114295c0bcacf1fa3ca716379cff64f0bf..d662f4a0f1478ea0b83b6fa0361a249b77444f5a 100644 (file)
@@ -1219,7 +1219,7 @@ func Test_edit_LEFT_RIGHT()
 endfunc
 
 func Test_edit_MOUSE()
-  " This is a simple test, since we not really using the mouse here
+  " This is a simple test, since we're not really using the mouse here
   CheckFeature mouse
   10new
   call setline(1, range(1, 100))
@@ -1797,7 +1797,7 @@ func Test_edit_charconvert()
   close!
   set charconvert&
 
-  " 'charconvert' function doesn't create a output file
+  " 'charconvert' function doesn't create an output file
   func Cconv1()
   endfunc
   set charconvert=Cconv1()
index 654d9125bfb356e9afa1986004fc495b497ae6c8..b14c5413f05a1c5c8d99344aa48ff8cfdaea9e44 100644 (file)
@@ -2911,7 +2911,7 @@ func Test_state()
   call term_sendkeys(buf, getstate)
   call WaitForAssert({-> assert_match('state: mSc; mode: n', term_getline(buf, 6))}, 1000)
 
-  " A operator is pending
+  " An operator is pending
   call term_sendkeys(buf, ":call RunTimer()\<CR>y")
   call TermWait(buf, 25)
   call term_sendkeys(buf, "y")
index 6e39d4e3e021226774de5f95464f78d68990ed49..af605031327a428319c8af156c212f859bf883c4 100644 (file)
@@ -878,7 +878,7 @@ func Test_highlight_default()
   hi clear
 endfunc
 
-" Test for 'ctermul in a highlight group
+" Test for 'ctermul' in a highlight group
 func Test_highlight_ctermul()
   CheckNotGui
   call assert_notmatch('ctermul=', HighlightArgs('Normal'))
index 3ff20973a23c7353c7a9e7067a869af26cc8ac4d..b7c8ad73462a1a456e669849bf0e0c6109653d68 100644 (file)
@@ -373,7 +373,7 @@ func Test_dict_big()
   endtry
   call assert_equal('Vim(let):E716: "1500"', str)
 
-  " lookup each items
+  " lookup each item
   for i in range(1500)
     call assert_equal(3000 - i, d[i])
   endfor
index 5485e144fb19b7e1107e16835b325eb6e3226b78..78d301f4150c1aaaeff1995772a1218a9aab9eeb 100644 (file)
@@ -568,7 +568,7 @@ endfunc
 func Test_mkview_terminal_windows()
   CheckFeature terminal
 
-  " create two window on the same terminal to check this is handled OK
+  " create two windows on the same terminal to check this is handled OK
   terminal
   let term_buf = bufnr()
   exe 'sbuf ' .. term_buf
index efda142d1da0c123ff6ba7a70f2083a761c9128f..9111eb84a1ac07a79ad6e8f23fbb0332c96722d0 100644 (file)
@@ -380,7 +380,7 @@ func Test_normal06_formatprg()
 endfunc
 
 func Test_normal07_internalfmt()
-  " basic test for internal formmatter to textwidth of 12
+  " basic test for internal formatter to textwidth of 12
   let list=range(1,11)
   call map(list, 'v:val."    "')
   10new
@@ -2582,7 +2582,7 @@ func Test_normal33_g_cmd2()
   exe "norm! G0\<c-v>4k4ly"
   exe "norm! gvood"
   call assert_equal(['', 'abfgh', 'abfgh', 'abfgh', 'fgh', 'fgh', 'fgh', 'fgh', 'fgh'], getline(1,'$'))
-  " gv cannot be used  in operator pending mode
+  " gv cannot be used in operator pending mode
   call assert_beeps('normal! cgv')
   " gv should beep without a previously selected visual area
   new
index 920473ddbca21e1e1f980417beddf1e847a6328d..b99d0e00582707c613f183b6786915b8e86ebdc4 100644 (file)
@@ -1448,7 +1448,7 @@ func Test_substitute_expr_switch_win()
   let bufnr = bufnr('%')
   put ="abcdef"
   silent! s/\%')/\=R()
-  call assert_fails(':%s/./\=R()/g', 'E565')
+  call assert_fails(':%s/./\=R()/g', 'E565:')
   delfunc R
   exe bufnr .. "bw!"
 endfunc
index 9f1e91d86c8c4b4f7f030d1483d38827f7bc366e..2549f32d6e860ddbf9e74515358f63e638a78a37 100644 (file)
@@ -1884,7 +1884,7 @@ def Test_class_implements_interface()
         enddef
       endclass
   END
-  v9.CheckScriptFailure(lines, 'E1407: Member "IsEven": type mismatch, expected func(number): bool but got func(number): string')
+  v9.CheckScriptFailure(lines, 'E1407: Method "IsEven": type mismatch, expected func(number): bool but got func(number): string')
 
   lines =<< trim END
       vim9script
@@ -1897,7 +1897,7 @@ def Test_class_implements_interface()
         enddef
       endclass
   END
-  v9.CheckScriptFailure(lines, 'E1407: Member "IsEven": type mismatch, expected func(number): bool but got func(bool): bool')
+  v9.CheckScriptFailure(lines, 'E1407: Method "IsEven": type mismatch, expected func(number): bool but got func(bool): bool')
 
   lines =<< trim END
       vim9script
@@ -1910,7 +1910,7 @@ def Test_class_implements_interface()
         enddef
       endclass
   END
-  v9.CheckScriptFailure(lines, 'E1407: Member "IsEven": type mismatch, expected func(number): bool but got func(number, ...list<number>): bool')
+  v9.CheckScriptFailure(lines, 'E1407: Method "IsEven": type mismatch, expected func(number): bool but got func(number, ...list<number>): bool')
 
   # access superclass interface members from subclass, mix variable order
   lines =<< trim END
@@ -4576,7 +4576,7 @@ def Test_abstract_method()
       enddef
     endclass
   END
-  v9.CheckScriptFailure(lines, 'E1407: Member "Foo": type mismatch, expected func(string, number): list<number> but got func(number, string): list<string>')
+  v9.CheckScriptFailure(lines, 'E1407: Method "Foo": type mismatch, expected func(string, number): list<number> but got func(number, string): list<string>')
 
   # Use an abstract class to invoke an abstract method
   # FIXME: This should fail
index 002d1153e48cd0398e8023446b5ce3513825d8b8..0c4aedb3c6bc082ee217b8b4250f443cd2ee2943 100644 (file)
@@ -3105,7 +3105,7 @@ endfunc
 "          should be given.
 "
 "          This test reuses the function MESSAGES() from the previous test.
-"          This functions checks the messages in g:msgfile.
+"          This function checks the messages in g:msgfile.
 "-------------------------------------------------------------------------------
 
 func Test_nested_while_error()
@@ -3230,7 +3230,7 @@ endfunc
 "          error messages should be given.
 "
 "          This test reuses the function MESSAGES() from the previous test.
-"          This functions checks the messages in g:msgfile.
+"          This function checks the messages in g:msgfile.
 "-------------------------------------------------------------------------------
 
 func Test_nested_cont_break_error()
@@ -3336,7 +3336,7 @@ endfunc
 "          should be given.
 "
 "          This test reuses the function MESSAGES() from the previous test.
-"          This functions checks the messages in g:msgfile.
+"          This function check the messages in g:msgfile.
 "-------------------------------------------------------------------------------
 
 func Test_nested_endtry_error()
index da5f6f5c382a1100efa133a479cbdc7e911e6f65..44c5ec89621a79caf4db29c46101346e1632a9dd 100644 (file)
@@ -236,7 +236,7 @@ func Test_ve_completion()
   set virtualedit=
 endfunc
 
-" Using "C" then then <CR> moves the last remaining character to the next
+" Using "C" then <CR> moves the last remaining character to the next
 " line.  (Mary Ellen Foster)
 func Test_ve_del_to_eol()
   new
index f9f6bd691622320173e2a2627698b76000817cfa..08dd2313f26362d2951da04f8dff99aabf4588f6 100644 (file)
@@ -292,7 +292,7 @@ tv_get_number(typval_T *varp)
 }
 
 /*
- * Like tv_get_numbe() but in Vim9 script do convert a number in a string to a
+ * Like tv_get_number() but in Vim9 script do convert a number in a string to a
  * number without giving an error.
  */
     varnumber_T
index 8faa534b21b5e5a85efb4acd6e4c6d1d598f4f31..70dd46fe12fb12bce722ca772bf0fc305f4c04d8 100644 (file)
@@ -699,6 +699,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1886,
 /**/
     1885,
 /**/
index e30ebda5c8765a99a465f45704dc598f5c31ab54..bafff94fde1b0111a25a828d6e21c9b7f7167c26 100644 (file)
@@ -32,7 +32,7 @@ typedef enum {
 
     ISN_SOURCE,            // source autoload script, isn_arg.number is the script ID
     ISN_INSTR,     // instructions compiled from expression
-    ISN_CONSTRUCT,  // construct an object, using contstruct_T
+    ISN_CONSTRUCT,  // construct an object, using construct_T
     ISN_GET_OBJ_MEMBER, // object member, index is isn_arg.number
     ISN_GET_ITF_MEMBER, // interface member, index is isn_arg.classmember
     ISN_STORE_THIS, // store value in "this" object member, index is
index 3955ce2f656b6ff74a6ac8b4e86d2dce63ee473a..2b81c9238221fb866e848a10f5061aa3b5318313 100644 (file)
@@ -722,7 +722,7 @@ check_typval_type(type_T *expected, typval_T *actual_tv, where_T where)
        {
            // If a type check is needed that means assigning "any" or
            // "unknown" to a more specific type, which fails here.
-           // Execpt when it looks like a lambda, since they have an
+           // Except when it looks like a lambda, since they have an
            // incomplete type.
            type_mismatch_where(expected, actual_type, where);
            res = FAIL;