mirror of
https://github.com/neovim/neovim.git
synced 2026-06-30 19:57:54 +00:00
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:
@@ -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$"
|
||||
|
||||
Reference in New Issue
Block a user