]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1022: linematch option value not completed v9.1.1022
authorChristian Brabandt <cb@256bit.org>
Thu, 16 Jan 2025 18:03:40 +0000 (19:03 +0100)
committerChristian Brabandt <cb@256bit.org>
Thu, 16 Jan 2025 18:03:40 +0000 (19:03 +0100)
Problem:  linematch option value not completed
          (after v9.1.1009)
Solution: Update diffoption completion values

related: #9661
closes: #16437

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/optionstr.c
src/testdir/test_options.vim
src/version.c

index 92474336a3d2565e797547983a05ec5ae9324644..86c7967e5324374e989b274635c34cb2470edfa3 100644 (file)
@@ -30,7 +30,7 @@ static char *(p_briopt_values[]) = {"shift:", "min:", "sbr", "list:", "column:",
 #endif
 #if defined(FEAT_DIFF)
 // Note: Keep this in sync with diffopt_changed()
-static char *(p_dip_values[]) = {"filler", "context:", "iblank", "icase", "iwhite", "iwhiteall", "iwhiteeol", "horizontal", "vertical", "closeoff", "hiddenoff", "foldcolumn:", "followwrap", "internal", "indent-heuristic", "algorithm:", NULL};
+static char *(p_dip_values[]) = {"filler", "context:", "iblank", "icase", "iwhite", "iwhiteall", "iwhiteeol", "horizontal", "vertical", "closeoff", "hiddenoff", "foldcolumn:", "followwrap", "internal", "indent-heuristic", "algorithm:", "linematch:", NULL};
 static char *(p_dip_algorithm_values[]) = {"myers", "minimal", "patience", "histogram", NULL};
 #endif
 static char *(p_nf_values[]) = {"bin", "octal", "hex", "alpha", "unsigned", "blank", NULL};
index 24bdc42fe1542478bb2feb260e7afc6c485a12d6..a7621f5d0889377a0e3f625b7acc4e4da58dd60a 100644 (file)
@@ -701,6 +701,10 @@ func Test_set_completion_string_values()
   " Test empty option
   set diffopt=
   call assert_equal([], getcompletion('set diffopt-=', 'cmdline'))
+  " Test all possible values
+  call assert_equal(['filler', 'context:', 'iblank', 'icase', 'iwhite', 'iwhiteall', 'iwhiteeol', 'horizontal',
+        \ 'vertical', 'closeoff', 'hiddenoff', 'foldcolumn:', 'followwrap', 'internal', 'indent-heuristic', 'algorithm:', 'linematch:'],
+        \ getcompletion('set diffopt=', 'cmdline'))
   set diffopt&
 
   " Test escaping output
index c360a2416be8eafa5ff77552dc39cf85a4a200dd..f2d77568f8bcddbd980c2c7bcae87d07ec59d766 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1022,
 /**/
     1021,
 /**/