vim-patch:9.1.1865: tests: do not notice lines containing only a tab (#40182)

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: vim/vim#18595

5b5290ec02

Co-authored-by: Hirohito Higashi <h.east.727@gmail.com>
This commit is contained in:
zeertzjq
2026-06-11 18:47:57 +08:00
committed by GitHub
parent 2fd2361a9d
commit de10d10d3f

View File

@@ -93,7 +93,7 @@ func Test_help_files()
" Check for unnecessary whitespace at the end of a line
call cursor(1, 1)
while 1
let lnum = search('[^/~\\]\s$')
let 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$"