Mercurial > vim
comparison src/testdir/test_vimscript.vim @ 18556:ed9690c0f27c v8.1.2272
patch 8.1.2272: test may hang at more prompt
Commit: https://github.com/vim/vim/commit/34059e7b67ae8a58dc2471b309afe05d9dde760f
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Nov 8 23:00:25 2019 +0100
patch 8.1.2272: test may hang at more prompt
Problem: Test may hang at more prompt.
Solution: Reset 'more' after resetting 'compatible'. (Michael Soyka)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 08 Nov 2019 23:15:03 +0100 |
parents | ece46bd3c9af |
children | b920ae62c7b1 |
comparison
equal
deleted
inserted
replaced
18555:babb80ff1342 | 18556:ed9690c0f27c |
---|---|
1630 func s:DoNothing() | 1630 func s:DoNothing() |
1631 call append(line('$'), "nothing line") | 1631 call append(line('$'), "nothing line") |
1632 endfunc | 1632 endfunc |
1633 | 1633 |
1634 func Test_script_local_func() | 1634 func Test_script_local_func() |
1635 set nocp viminfo+=nviminfo | 1635 set nocp nomore viminfo+=nviminfo |
1636 new | 1636 new |
1637 nnoremap <buffer> _x :call <SID>DoNothing()<bar>call <SID>DoLast()<bar>delfunc <SID>DoNothing<bar>delfunc <SID>DoLast<cr> | 1637 nnoremap <buffer> _x :call <SID>DoNothing()<bar>call <SID>DoLast()<bar>delfunc <SID>DoNothing<bar>delfunc <SID>DoLast<cr> |
1638 | 1638 |
1639 normal _x | 1639 normal _x |
1640 call assert_equal('nothing line', getline(2)) | 1640 call assert_equal('nothing line', getline(2)) |