]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1319: Various typos in the code, issue with test_inst_complete.vim v9.1.1319
authorzeertzjq <zeertzjq@outlook.com>
Fri, 18 Apr 2025 08:57:33 +0000 (10:57 +0200)
committerChristian Brabandt <cb@256bit.org>
Fri, 18 Apr 2025 08:57:33 +0000 (10:57 +0200)
Problem:  Various typos in the code, redundant and strange use of
          :execute in test_ins_complete.vim (after 9.1.1315).
Solution: Fix typos in the code and in the documentation, use the
          executed command directly (zeertzjq).

closes: #17143

Co-authored-by: Christ van Willegen <cvwillegen@gmail.com>
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/develop.txt
runtime/doc/version9.txt
src/diff.c
src/normal.c
src/ops.c
src/os_unix.c
src/quickfix.c
src/term.c
src/testdir/test_ins_complete.vim
src/version.c

index d97d230e9f36d606d24eb58824612f1683e710d0..18e2caec70f3a5352bd67a02ab4a438ecc54ffa6 100644 (file)
@@ -1,4 +1,4 @@
-*develop.txt*   For Vim version 9.1.  Last change: 2024 Dec 25
+*develop.txt*   For Vim version 9.1.  Last change: 2025 Apr 18
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -192,7 +192,7 @@ For any non-trivial change, please always create a pull request on github,
 since this triggers the test suite.
 
                                                        *style-clang-format*
-sound.c and sign.c can be (semi-) automatically formated using the
+sound.c and sign.c can be (semi-) automatically formatted using the
 `clang-format` formatter according to the distributed .clang-format file.
 Other source files do not yet correspond to the .clang-format file.  This may
 change in the future and they may be reformatted as well.
index a5579f4ab8e19b3882006a17c6b18ddc69973b58..4fb3227086cc62c95e099cb7250ade8224bf938f 100644 (file)
@@ -1,4 +1,4 @@
-*version9.txt*  For Vim version 9.1.  Last change: 2025 Apr 16
+*version9.txt*  For Vim version 9.1.  Last change: 2025 Apr 18
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -41594,7 +41594,7 @@ Default values: ~
 - the default 'backspace' option for Vim has been set to "indent,eol,start"
   and removed from |defaults.vim|
 - the default fontsize for the GTK builds of Vim (Windows and Unix) has been
-  increased to 12pt to accomodate modern high-dpi monitors
+  increased to 12pt to accommodate modern high-dpi monitors
 - the default value of the 'keyprotocol' option has been updated and support
   for the ghostty terminal emulator (using kitty protocol) has been added
 
@@ -41739,7 +41739,7 @@ Ex-Commands: ~
 Options: ~
 
 'chistory'             Size of the quickfix stack |quickfix-stack|.
-'completefuzzycollect' Enable fuzzy collection of candiates for (some)
+'completefuzzycollect' Enable fuzzy collection of candidates for (some)
                        |ins-completion| modes
 'completeitemalign'    Order of |complete-items| in Insert mode completion
                        popup
index e694cf20cd49acf96aad8b4ed14761d5cb6b6908..ec108e985e02d68a838fc74ce11da9b4cf284d9b 100644 (file)
@@ -3229,7 +3229,7 @@ diff_refine_inline_char_highlight(diff_T *dp_orig, garray_T *linemap, int idx1)
 }
 
 /*
- * Find the inline difference within a diff block among differnt buffers.  Do
+ * Find the inline difference within a diff block among different buffers.  Do
  * this by splitting each block's content into characters or words, and then
  * use internal xdiff to calculate the per-character/word diff.  The result is
  * stored in dp instead of returned by the function.
@@ -4548,7 +4548,7 @@ f_diff_hlID(typval_T *argvars UNUSED, typval_T *rettv UNUSED)
     {
        // Remember the results if using simple since it's recalculated per
        // call. Otherwise just call diff_find_change() every time since
-       // internally the result is cached interally.
+       // internally the result is cached internally.
        cache_results = FALSE;
     }
 
index 6cd9004ad156284831ea1078e31fc4362811d830..ea30607d6a548fadda2a558a9668cc1ed02b02ba 100644 (file)
@@ -2786,7 +2786,7 @@ nv_zet(cmdarg_T *cap)
                }
                break;
 
-               // "zp", "zP" in block mode put without addind trailing spaces
+               // "zp", "zP" in block mode put without adding trailing spaces
     case 'P':
     case 'p':  nv_put(cap);
               break;
index 0e3711eb755305334dfa4021b8dfb767e4d62040..b4b59de226ec349461158be5169d43a1df7fc79b 100644 (file)
--- a/src/ops.c
+++ b/src/ops.c
@@ -248,11 +248,11 @@ get_vts_sum(int *vts_array, int index)
     int        sum = 0;
     int        i;
 
-    // Perform the summation for indeces within the actual array.
+    // Perform the summation for indices within the actual array.
     for (i = 1; i <= index && i <= vts_array[0]; i++)
        sum += vts_array[i];
 
-    // Add topstops whose indeces exceed the actual array.
+    // Add tabstops whose indices exceed the actual array.
     if (i <= index)
        sum += vts_array[vts_array[0]] * (index - vts_array[0]);
 
index dc08408de686a7fe0c469fdd8af6b1dbe74b9dee..de6e661abf00ef8eb07d626f7a0f8621c2b9cba6 100644 (file)
@@ -4434,7 +4434,7 @@ mch_report_winsize(int fd, int rows, int cols)
     ws.ws_col = cols;
     ws.ws_row = rows;
 
-    // calcurate and set tty pixel size
+    // calculate and set tty pixel size
     struct cellsize cs;
     mch_calc_cell_size(&cs);
 
index 2b12fb5ec13c76afb2bd8c26a5046d896f194839..2bc2f2d5fb4315633bb8ed0f71d7f12bd3527937 100644 (file)
@@ -119,7 +119,7 @@ struct qf_info_S
 };
 
 static qf_info_T ql_info_actual; // global quickfix list
-static qf_info_T *ql_info;     // points to ql_info_actual if memory allocation is sucessful.
+static qf_info_T *ql_info;     // points to ql_info_actual if memory allocation is successful.
 static int_u last_qf_id = 0;   // Last used quickfix list id
 
 #define FMT_PATTERNS 14                // maximum number of % recognized
index 81b04e0dc9962193133786110193d06effe5bd4e..5c030ed20a9bcd5e798fb945fbfcf1068703ac1b 100644 (file)
@@ -1710,7 +1710,7 @@ static char *(key_names[]) =
     // Do those ones first, both may cause a screen redraw.
     "Co",
     // disabled, because it switches termguicolors, but that
-    // is noticable and confuses users
+    // is noticeable and confuses users
     // "RGB",
 # endif
     "ku", "kd", "kr", "kl",
index 916ad19fbc84f0475686639c7e14e69e770ec0d9..9d39b2a7ff6c1429d70ac21560ab07612cff695a 100644 (file)
@@ -3598,7 +3598,7 @@ func Test_complete_fuzzy_collect()
   call feedkeys("Gofuzzy\<C-X>\<C-N>\<C-N>\<C-N>\<C-Y>\<Esc>0", 'tx!')
   call assert_equal('completefuzzycollect', getline('.'))
 
-  execute('%d _')
+  %d _
   call setline(1, ['fuzzy', 'fuzzy foo', "fuzzy bar", 'fuzzycollect'])
   call feedkeys("Gofuzzy\<C-X>\<C-N>\<C-N>\<C-N>\<C-Y>\<Esc>0", 'tx!')
   call assert_equal('fuzzycollect', getline('.'))
index a095b6782116b53cb1aab9bea08975c399fafce3..952c742015c9860cdd307ebf5fa421d9ae77ee6f 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1319,
 /**/
     1318,
 /**/