patch 9.1.1865: tests: do not notice lines containing only a tab

Commit: 
https://github.com/vim/vim/commit/5b5290ec02ebb16681abc0a617bfd48c75aba353
Author: Hirohito Higashi <[email protected]>
Date:   Sat Oct 18 13:57:53 2025 +0000

    patch 9.1.1865: tests: do not notice lines containing only a tab
    
    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 <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 12580eae2..0f81f4d6b 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -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
 
diff --git a/src/testdir/test_codestyle.vim b/src/testdir/test_codestyle.vim
index ea12b6c66..46f839c06 100644
--- a/src/testdir/test_codestyle.vim
+++ b/src/testdir/test_codestyle.vim
@@ -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) =~ "^        /       $"
diff --git a/src/version.c b/src/version.c
index 268d1fc61..2ef00ab81 100644
--- a/src/version.c
+++ b/src/version.c
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1865,
 /**/
     1864,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1vA7i8-004wXg-3J%40256bit.org.

Raspunde prin e-mail lui