diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2017-03-21 23:17:10 +0100 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2017-03-22 18:43:00 +0100 |
| commit | 01bf78971cea43938e01439ae6d4687bc97196ea (patch) | |
| tree | fc1f383ae092ca752e8797cac651b9237fa7d1b8 /src/nvim/testdir | |
| parent | b82e3358e006264187f104bb0321104621bcc811 (diff) | |
| download | rneovim-01bf78971cea43938e01439ae6d4687bc97196ea.tar.gz rneovim-01bf78971cea43938e01439ae6d4687bc97196ea.tar.bz2 rneovim-01bf78971cea43938e01439ae6d4687bc97196ea.zip | |
vim-patch:8.0.0172
Problem: The command selected in the command line window is not executed.
(Andrey Starodubtsev)
Solution: Save and restore the command line at a lower level. (closes vim/vim#1370)
https://github.com/vim/vim/commit/1d669c233c97486555a34f7d3f069068d9ebdb63
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_history.vim | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_history.vim b/src/nvim/testdir/test_history.vim index ee6acfffc3..3163b344d3 100644 --- a/src/nvim/testdir/test_history.vim +++ b/src/nvim/testdir/test_history.vim @@ -63,3 +63,20 @@ function Test_History() call assert_equal(-1, histnr('abc')) call assert_fails('call histnr([])', 'E730:') endfunction + +function Test_Search_history_window() + new + call setline(1, ['a', 'b', 'a', 'b']) + 1 + call feedkeys("/a\<CR>", 'xt') + call assert_equal('a', getline('.')) + 1 + call feedkeys("/b\<CR>", 'xt') + call assert_equal('b', getline('.')) + 1 + " select the previous /a command + call feedkeys("q/kk\<CR>", 'x!') + call assert_equal('a', getline('.')) + call assert_equal('a', @/) + bwipe! +endfunc |