Mercurial > vim
comparison src/testdir/test_ex_mode.vim @ 19433:af9d5585cfbf v8.2.0274
patch 8.2.0274: hang with combination of feedkeys(), Ex mode and :global
Commit: https://github.com/vim/vim/commit/9e2bcb5d23138d45a0b6f9c1542b5facc807efe7
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Feb 18 21:33:00 2020 +0100
patch 8.2.0274: hang with combination of feedkeys(), Ex mode and :global
Problem: Hang with combination of feedkeys(), Ex mode and :global.
(Yegappan Lakshmanan)
Solution: Add the pending_exmode_active flag.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 18 Feb 2020 21:45:04 +0100 |
parents | 67fbe280a502 |
children | cb73f4ae6b7c |
comparison
equal
deleted
inserted
replaced
19432:686bc965b4b4 | 19433:af9d5585cfbf |
---|---|
109 call assert_equal(5, col('.')) | 109 call assert_equal(5, col('.')) |
110 call assert_fails('call feedkeys("Qopen /baz/\<CR>", "xt")', 'E479:') | 110 call assert_fails('call feedkeys("Qopen /baz/\<CR>", "xt")', 'E479:') |
111 close! | 111 close! |
112 endfunc | 112 endfunc |
113 | 113 |
114 func Test_Ex_feedkeys() | |
115 " this doesn't do anything useful, just check it doesn't hang | |
116 new | |
117 call setline(1, ["foo"]) | |
118 call feedkeys("Qg/foo/visual\<CR>", "xt") | |
119 bwipe! | |
120 endfunc | |
121 | |
114 " vim: shiftwidth=2 sts=2 expandtab | 122 " vim: shiftwidth=2 sts=2 expandtab |