Skip to content

Commit 2a45d64

Browse files
committed
patch 8.0.1226: edit and popup tests failing
Problem: Edit and popup tests failing. Solution: Make the tests pass.
1 parent ee03b94 commit 2a45d64

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

src/testdir/test_edit.vim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,14 +215,16 @@ endfunc
215215

216216
func! Test_edit_08()
217217
" reset insertmode from i_ctrl-r_=
218+
let g:bufnr = bufnr('%')
218219
new
219220
call setline(1, ['abc'])
220221
call cursor(1, 4)
221-
call feedkeys(":set im\<cr>ZZZ\<c-r>=setbufvar(1,'&im', 0)\<cr>",'tnix')
222+
call feedkeys(":set im\<cr>ZZZ\<c-r>=setbufvar(g:bufnr,'&im', 0)\<cr>",'tnix')
222223
call assert_equal(['abZZZc'], getline(1,'$'))
223224
call assert_equal([0, 1, 1, 0], getpos('.'))
224225
call assert_false(0, '&im')
225226
bw!
227+
unlet g:bufnr
226228
endfunc
227229

228230
func! Test_edit_09()

src/testdir/test_popup.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,8 @@ func Test_popup_and_preview_autocommand()
681681
call setline(2, ' os.')
682682
$
683683
call feedkeys("A\<C-X>\<C-O>\<C-N>\<C-N>\<C-N>\<enter>\<esc>", 'tx')
684-
call assert_equal(["import os", " os.EX_IOERR", ''], getline(1,'$'))
684+
call assert_equal("import os", getline(1))
685+
call assert_match(' os.\(EX_IOERR\|O_CREAT\)$', getline(2))
685686
call assert_equal(1, winnr('$'))
686687
" previewwindow option is not set
687688
call assert_equal(0, &previewwindow)

src/version.c

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

762762
static int included_patches[] =
763763
{ /* Add new patch number below this line */
764+
/**/
765+
1226,
764766
/**/
765767
1225,
766768
/**/

0 commit comments

Comments
 (0)