]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0282: Several small issues in doc and tests v9.1.0283
authorChristian Brabandt <cb@256bit.org>
Tue, 9 Apr 2024 06:06:52 +0000 (08:06 +0200)
committerChristian Brabandt <cb@256bit.org>
Tue, 9 Apr 2024 06:06:52 +0000 (08:06 +0200)
Problem:  Wrong doc style for pandoc syntax description,
          Test_diff_eob_halfpage() may fail depending on
          screen size, using braces in highlight.c when
          not necessary
Solution: Fix pandoc documentation, make sure the window
          for the test has 7 lines, remove the braces.

Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/filetype.txt
runtime/doc/syntax.txt
src/highlight.c
src/testdir/test_diffmode.vim
src/version.c

index aa7c9ae0c538897582ce3feca59e185a12298a81..f13cfc60d18ee79f073c4ddb2009cb7f0d120914 100644 (file)
@@ -1,4 +1,4 @@
-*filetype.txt* For Vim version 9.1.  Last change: 2024 Apr 08
+*filetype.txt* For Vim version 9.1.  Last change: 2024 Apr 09
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -174,7 +174,6 @@ variables can be used to overrule the filetype used for certain extensions:
        *.typ           g:filetype_typ
        *.v             g:filetype_v
        *.w             g:filetype_w            |ft-cweb-syntax|
-       *.md            g:pandoc#filetypes#pandoc_markdown
 
 For a few filetypes the global variable is used only when the filetype could
 not be detected:
index 5e290ecb1bfa8171e6d25337437a6c29f17df99c..cc04c59c4c61c621b4370e92524880d008640d71 100644 (file)
@@ -1,4 +1,4 @@
-*syntax.txt*   For Vim version 9.1.  Last change: 2024 Apr 08
+*syntax.txt*   For Vim version 9.1.  Last change: 2024 Apr 09
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -2532,7 +2532,7 @@ can use the "PANDOC=VIM" syntax. For example: >
 
 To use italics and strong in emphases. Default = 1 >
 
-       :let *g:pandoc#syntax#style#emphases = 1
+       :let g:pandoc#syntax#style#emphases = 1
 
 "0" will add "block" to g:pandoc#syntax#conceal#blacklist, because otherwise
 you couldn't tell where the styles are applied.
index d874032fb21df0e82c04d9fa5d446957c4e1c350..54e348d330bbb970e7db110c01a8b886fc7adbec 100644 (file)
@@ -2543,9 +2543,7 @@ gui_get_color_cmn(char_u *name)
     target.length = 0;         // not used, see cmp_keyvalue_value_i()
     entry = (keyvalue_T *)bsearch(&target, &rgb_tab, ARRAY_LENGTH(rgb_tab), sizeof(rgb_tab[0]), cmp_keyvalue_value_i);
     if (entry != NULL)
-    {
        return gui_adjust_rgb((guicolor_T)entry->key);
-    }
 
 #if defined(FEAT_EVAL)
     /*
index 9e973de2137e7003810f0c4eb7d6a743d3122cc8..f28e840ac57e8f2e70f8c340e217147652688400 100644 (file)
@@ -2028,10 +2028,12 @@ func Test_diff_eob_halfpage()
   5new
   call setline(1, ['']->repeat(10) + ['a'])
   diffthis
+  call assert_true(5, winheight(5))
   5new
   call setline(1, ['']->repeat(3) + ['a', 'b'])
   diffthis
   wincmd j
+  resize 7
   exe "norm! G\<C-D>"
   call assert_equal(6, line('w0'))
 
index 27ebd69f4b8f2269ae934f1a59b6833cf6a355c8..dc9f775ff299e63971ad60fc8dfc9378d15cc4a0 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    283,
 /**/
     282,
 /**/