diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-10-14 09:58:30 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-14 09:58:30 +0800 |
commit | bf70a33f5e7de0218704126c149db24542e39766 (patch) | |
tree | 45190c96e29e86f2770ad1481fbf6d37794e76d4 /test/functional/ui/inccommand_spec.lua | |
parent | 9f32deba56ea867a8bb9b9ab7f44bcc5142e8bbc (diff) | |
download | rneovim-bf70a33f5e7de0218704126c149db24542e39766.tar.gz rneovim-bf70a33f5e7de0218704126c149db24542e39766.tar.bz2 rneovim-bf70a33f5e7de0218704126c149db24542e39766.zip |
vim-patch:8.1.0822: peeking and flushing output slows down execution (#25629)
Problem: Peeking and flushing output slows down execution.
Solution: Do not update the mode message when global_busy is set. Do not
flush when only peeking for a character. (Ken Takata)
https://github.com/vim/vim/commit/cb574f415486adff645ce384979bfecf27f5be8c
Diffstat (limited to 'test/functional/ui/inccommand_spec.lua')
-rw-r--r-- | test/functional/ui/inccommand_spec.lua | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test/functional/ui/inccommand_spec.lua b/test/functional/ui/inccommand_spec.lua index 00dfa3fd49..cb00c75e74 100644 --- a/test/functional/ui/inccommand_spec.lua +++ b/test/functional/ui/inccommand_spec.lua @@ -2929,7 +2929,16 @@ it(':substitute with inccommand, allows :redraw before first separator is typed meths.open_win(float_buf, false, { relative = 'editor', height = 1, width = 5, row = 3, col = 0, focusable = false, }) - feed(':%s') + feed(':') + screen:expect([[ + foo bar baz | + bar baz fox | + bar foo baz | + {16: }{15: }| + {15:~ }| + :^ | + ]]) + feed('%s') screen:expect([[ foo bar baz | bar baz fox | |