comparison src/testdir/test_ex_mode.vim @ 19471:cb73f4ae6b7c v8.2.0293

patch 8.2.0293: various Ex commands not sufficiently tested Commit: https://github.com/vim/vim/commit/818fc9ad143911b2faa0d7cee86724aa70a02080 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 21 17:54:45 2020 +0100 patch 8.2.0293: various Ex commands not sufficiently tested Problem: Various Ex commands not sufficiently tested. Solution: Add more test cases. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/5673)
author Bram Moolenaar <Bram@vim.org>
date Fri, 21 Feb 2020 18:00:05 +0100
parents af9d5585cfbf
children bab20768e1fd
comparison
equal deleted inserted replaced
19470:ddc2e7caff46 19471:cb73f4ae6b7c
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() 114 " Test for :g/pat/visual to run vi commands in Ex mode
115 " this doesn't do anything useful, just check it doesn't hang 115 " This used to hang Vim before 8.2.0274.
116 func Test_Ex_global()
116 new 117 new
117 call setline(1, ["foo"]) 118 call setline(1, ['', 'foo', 'bar', 'foo', 'bar', 'foo'])
118 call feedkeys("Qg/foo/visual\<CR>", "xt") 119 call feedkeys("Qg/bar/visual\<CR>$rxQ$ryQvisual\<CR>j", "xt")
120 call assert_equal('bax', getline(3))
121 call assert_equal('bay', getline(5))
119 bwipe! 122 bwipe!
120 endfunc 123 endfunc
121 124
122 " vim: shiftwidth=2 sts=2 expandtab 125 " vim: shiftwidth=2 sts=2 expandtab