]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1865: tests: do not notice lines containing only a tab v9.1.1865
authorHirohito Higashi <h.east.727@gmail.com>
Sat, 18 Oct 2025 13:57:53 +0000 (13:57 +0000)
committerChristian Brabandt <cb@256bit.org>
Sat, 18 Oct 2025 13:57:53 +0000 (13:57 +0000)
Problem:  tests: test_codestyle does not notice lines containing only a
          tab
Solution: Fix the whitespace issue in eval.txt, update test_codestyle to
          notice such issues (Hirohito Higashi)

closes: #18595

Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/eval.txt
src/testdir/test_codestyle.vim
src/version.c

index 12580eae2125a3d2c4362351af100e398d6249fa..0f81f4d6b9e55b751da07b1316419c84a63655df 100644 (file)
@@ -1,4 +1,4 @@
-*eval.txt*     For Vim version 9.1.  Last change: 2025 Oct 16
+*eval.txt*     For Vim version 9.1.  Last change: 2025 Oct 18
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -5356,30 +5356,30 @@ OSC52 command: >vim
        func Available()
          return "*"
        endfunc
-       
+
        func Paste(reg, type)
          " If implicit access, don't do anything
          if a:type == "implicit"
            return "previous"
          endif
-       
+
          augroup OSC
            autocmd!
            autocmd TermResponseAll osc ++once call feedkeys("\<F30>", '!')
          augroup END
-       
+
          " Send command
          call echoraw("\<Esc>]52;;?\<Esc>\\")
-       
+
          " Wait until autocmd is triggered
          while getchar(-1) != "\<F30>"
          endwhile
-       
+
          autocmd! OSC
-       
+
          " Extract the base64 stuff
          let l:stuff = matchstr(v:termosc, '52;.\+;\zs[A-Za-z0-9+/=]\+')
-       
+
          return ("", blob2str(base64_decode(l:stuff)))
        endfunc
 
index ea12b6c66dbd702af06aa42a47849a017813d9c6..46f839c0690b19a585838b3507a81b48f0191fcd 100644 (file)
@@ -137,7 +137,7 @@ def Test_help_files()
     # Check for unnecessary whitespace at the end of a line
     cursor(1, 1)
     while 1
-      lnum = search('[^/~\\]\s$')
+      lnum = search('\%([^/~\\]\|^\)\s\+$')
       # skip line that are known to have trailing white space
       if fname == 'map.txt' && getline(lnum) =~ "unmap @@ $"
         || fname == 'usr_12.txt' && getline(lnum) =~ "^\t/ \t$"
index 268d1fc61380199ad3c25403f4c07daf5cc0f721..2ef00ab81d702f97e26e1bb8695d90229dbbbcdb 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1865,
 /**/
     1864,
 /**/