Skip to content

Commit 5b5290e

Browse files
h-eastchrisbra
authored andcommitted
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 <h.east.727@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 1b565ee commit 5b5290e

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

runtime/doc/eval.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 9.1. Last change: 2025 Oct 16
1+
*eval.txt* For Vim version 9.1. Last change: 2025 Oct 18
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -5356,30 +5356,30 @@ OSC52 command: >vim
53565356
func Available()
53575357
return "*"
53585358
endfunc
5359-
5359+
53605360
func Paste(reg, type)
53615361
" If implicit access, don't do anything
53625362
if a:type == "implicit"
53635363
return "previous"
53645364
endif
5365-
5365+
53665366
augroup OSC
53675367
autocmd!
53685368
autocmd TermResponseAll osc ++once call feedkeys("\<F30>", '!')
53695369
augroup END
5370-
5370+
53715371
" Send command
53725372
call echoraw("\<Esc>]52;;?\<Esc>\\")
5373-
5373+
53745374
" Wait until autocmd is triggered
53755375
while getchar(-1) != "\<F30>"
53765376
endwhile
5377-
5377+
53785378
autocmd! OSC
5379-
5379+
53805380
" Extract the base64 stuff
53815381
let l:stuff = matchstr(v:termosc, '52;.\+;\zs[A-Za-z0-9+/=]\+')
5382-
5382+
53835383
return ("", blob2str(base64_decode(l:stuff)))
53845384
endfunc
53855385

src/testdir/test_codestyle.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def Test_help_files()
137137
# Check for unnecessary whitespace at the end of a line
138138
cursor(1, 1)
139139
while 1
140-
lnum = search('[^/~\\]\s$')
140+
lnum = search('\%([^/~\\]\|^\)\s\+$')
141141
# skip line that are known to have trailing white space
142142
if fname == 'map.txt' && getline(lnum) =~ "unmap @@ $"
143143
|| fname == 'usr_12.txt' && getline(lnum) =~ "^\t/ \t$"

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,8 @@ static char *(features[]) =
734734

735735
static int included_patches[] =
736736
{ /* Add new patch number below this line */
737+
/**/
738+
1865,
737739
/**/
738740
1864,
739741
/**/

0 commit comments

Comments
 (0)