Skip to content

Commit 037c54f

Browse files
committed
patch 8.1.1193: typos and small problems in test files
Problem: Typos and small problems in test files. Solution: Small improvements.
1 parent 4c25bd7 commit 037c54f

7 files changed

Lines changed: 15 additions & 7 deletions

File tree

src/testdir/test_gn.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
func Test_gn_command()
44
noautocmd new
5-
" replace a single char by itsself quoted:
5+
" replace a single char by itself quoted:
66
call setline('.', 'abc x def x ghi x jkl')
77
let @/ = 'x'
88
exe "norm! cgn'x'\<esc>.."

src/testdir/test_quotestar.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func Do_test_quotestar_for_x11()
9797
if has('unix') && has('gui') && !has('gui_running')
9898
let @* = ''
9999

100-
" Running in a terminal and the GUI is avaiable: Tell the server to open
100+
" Running in a terminal and the GUI is available: Tell the server to open
101101
" the GUI and check that the remote command still works.
102102
" Need to wait for the GUI to start up, otherwise the send hangs in trying
103103
" to send to the terminal window.

src/testdir/test_registers.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,5 +163,7 @@ func Test_recording_esc_sequence()
163163
bwipe!
164164
if exists('save_F2')
165165
let t_F2 = save_F2
166+
else
167+
set t_F2=
166168
endif
167169
endfunc

src/testdir/test_syntax.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func Test_syn_iskeyword()
3434
\ 'CREATE TABLE FOOBAR(',
3535
\ ' DLTD_BY VARCHAR2(100)',
3636
\ ');',
37-
\ ''])
37+
\ ''])
3838

3939
syntax on
4040
set ft=sql
@@ -519,7 +519,7 @@ func Test_synstack_synIDtrans()
519519

520520
norm f/
521521
call assert_equal(['cComment', 'cCommentStart'], map(synstack(line("."), col(".")), 'synIDattr(v:val, "name")'))
522-
call assert_equal(['Comment', 'Comment'], map(synstack(line("."), col(".")), 'synIDattr(synIDtrans(v:val), "name")'))
522+
call assert_equal(['Comment', 'Comment'], map(synstack(line("."), col(".")), 'synIDattr(synIDtrans(v:val), "name")'))
523523

524524
norm fA
525525
call assert_equal(['cComment'], map(synstack(line("."), col(".")), 'synIDattr(v:val, "name")'))

src/testdir/test_tabpage.vim

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,6 @@ endfunc
140140

141141
" Test autocommands
142142
function Test_tabpage_with_autocmd()
143-
if !has('autocmd')
144-
return
145-
endif
146143
command -nargs=1 -bar C :call add(s:li, '=== ' . <q-args> . ' ===')|<args>
147144
augroup TestTabpageGroup
148145
au!

src/testdir/test_vartabs.vim

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ if !has("vartabs")
55
endif
66

77
source view_util.vim
8+
89
func s:compare_lines(expect, actual)
910
call assert_equal(join(a:expect, "\n"), join(a:actual, "\n"))
1011
endfunc
@@ -372,3 +373,9 @@ func Test_vartabs_failures()
372373
call assert_fails('set vts=,8')
373374
call assert_fails('set vsts=,8')
374375
endfunc
376+
377+
func Test_vartabs_reset()
378+
set vts=8
379+
set all&
380+
call assert_equal('', &vts)
381+
endfunc

src/version.c

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

772772
static int included_patches[] =
773773
{ /* Add new patch number below this line */
774+
/**/
775+
1193,
774776
/**/
775777
1192,
776778
/**/

0 commit comments

Comments
 (0)