Mercurial > vim
comparison src/testdir/test_ex_mode.vim @ 32667:9e28090dd246 v9.0.1665
patch 9.0.1665: empty CmdlineEnter autocommand causes errors in Ex mode
Commit: https://github.com/vim/vim/commit/590aae35575cbd74d80c41d87fc647f2812aad70
Author: Christian Brabandt <cb@256bit.org>
Date: Sun Jun 25 22:34:22 2023 +0100
patch 9.0.1665: empty CmdlineEnter autocommand causes errors in Ex mode
Problem: Empty CmdlineEnter autocommand causes errors in Ex mode.
Solution: Save and restore ex_pressedreturn. (Christian Brabandt,
closes # 12581, closes #12578)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 25 Jun 2023 23:45:07 +0200 |
parents | a2dd770c854a |
children | 448aef880252 |
comparison
equal
deleted
inserted
replaced
32666:f905f7bc568c | 32667:9e28090dd246 |
---|---|
237 endfunc | 237 endfunc |
238 call feedkeys("gQvi\r", 'xt') | 238 call feedkeys("gQvi\r", 'xt') |
239 | 239 |
240 au! CmdLineEnter | 240 au! CmdLineEnter |
241 delfunc ExEnterFunc | 241 delfunc ExEnterFunc |
242 | |
243 au CmdlineEnter * : | |
244 call feedkeys("gQecho 1\r", 'xt') | |
245 | |
246 au! CmdlineEnter | |
247 | |
242 quit | 248 quit |
243 endfunc | 249 endfunc |
244 | 250 |
245 func Test_ex_mode_with_global() | 251 func Test_ex_mode_with_global() |
246 CheckNotGui | 252 CheckNotGui |