diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-11-02 15:59:57 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-11-02 15:59:57 +0100 |
commit | f45938cc20ed6992e5215ffe41b73b528c78be9c (patch) | |
tree | a1e9ed1adaf82232c78d386a214d7066525b5fad /src/testdir/test_search.vim | |
parent | ffd99f729bd806e09d9355ede9c17780b61057bf (diff) |
patch 8.0.1243: no test for what 8.0.1227 fixesv8.0.1243
Problem: No test for what 8.0.1227 fixes.
Solution: Add a test that triggers the problem. (Christian Brabandt)
Diffstat (limited to 'src/testdir/test_search.vim')
-rw-r--r-- | src/testdir/test_search.vim | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/testdir/test_search.vim b/src/testdir/test_search.vim index b863fcbba3..8d68f0c058 100644 --- a/src/testdir/test_search.vim +++ b/src/testdir/test_search.vim @@ -567,3 +567,18 @@ func Test_search_cmdline_incsearch_highlight_attr() bwipe! endfunc + +func Test_search_undefined_behaviour() + if !has("terminal") + return + endif + let h = winheight(0) + if h < 3 + return + endif + " did cause an undefined left shift + let g:buf = term_start([GetVimProg(), '--clean', '-e', '-s', '-c', 'call search(getline("."))', 'samples/test000'], {'term_rows': 3}) + call assert_equal([''], getline(1, '$')) + call term_sendkeys(g:buf, ":qa!\<cr>") + bwipe! +endfunc |