diff options
author | ZyX <kp-pav@yandex.ru> | 2017-06-28 14:39:52 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-06-28 14:39:52 +0300 |
commit | 9ccb3abbb55ec8ed7f3b4d2d2516fd451eca9a68 (patch) | |
tree | 420a7ceb07512e624b597deac96b6d8c2e1fb938 /test/functional/ui/cmdline_highlight_spec.lua | |
parent | 5e4976559a0f3e104b3f349593ad184d08c56a89 (diff) | |
download | rneovim-9ccb3abbb55ec8ed7f3b4d2d2516fd451eca9a68.tar.gz rneovim-9ccb3abbb55ec8ed7f3b4d2d2516fd451eca9a68.tar.bz2 rneovim-9ccb3abbb55ec8ed7f3b4d2d2516fd451eca9a68.zip |
functests: Uncomment `{REDRAW}` part of “works” test
Diffstat (limited to 'test/functional/ui/cmdline_highlight_spec.lua')
-rw-r--r-- | test/functional/ui/cmdline_highlight_spec.lua | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/test/functional/ui/cmdline_highlight_spec.lua b/test/functional/ui/cmdline_highlight_spec.lua index f356db88b5..a3dc9af360 100644 --- a/test/functional/ui/cmdline_highlight_spec.lua +++ b/test/functional/ui/cmdline_highlight_spec.lua @@ -214,18 +214,20 @@ describe('Command-line coloring', function() {EOB:~ }| :echo {RBP1:(}{RBP2:(}42{RBP2:)}^ | ]]) - -- FIXME - -- feed('{REDRAW}') - -- screen:expect([[ - -- | - -- {EOB:~ }| - -- {EOB:~ }| - -- {EOB:~ }| - -- {EOB:~ }| - -- {EOB:~ }| - -- {EOB:~ }| - -- :echo {RBP1:(}{RBP2:(}42{RBP2:)}^ | - -- ]]) + -- Bug in input() handling: {REDRAW} will erase the whole prompt up until + -- user types something. It exists in Vim as well, so using `h<BS>` as + -- a workaround. + feed('{REDRAW}h<BS>') + screen:expect([[ + | + {EOB:~ }| + {EOB:~ }| + {EOB:~ }| + {EOB:~ }| + {EOB:~ }| + {EOB:~ }| + :echo {RBP1:(}{RBP2:(}42{RBP2:)}^ | + ]]) end) for _, func_part in ipairs({'', 'n', 'msg'}) do it('disables :echo' .. func_part .. ' messages', function() |