diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2019-04-11 13:51:07 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2019-05-14 12:54:39 +0200 |
commit | 5020daa6e5ced9235f5d11317c74f655a129803e (patch) | |
tree | 3de6f25bd1bf1579e84c88a3fa9829b395131bd6 /test/functional/terminal/window_split_tab_spec.lua | |
parent | aa82f8b88fe82077740894dd387801384e0558b6 (diff) | |
download | rneovim-5020daa6e5ced9235f5d11317c74f655a129803e.tar.gz rneovim-5020daa6e5ced9235f5d11317c74f655a129803e.tar.bz2 rneovim-5020daa6e5ced9235f5d11317c74f655a129803e.zip |
ui/terminal: make terminal state redraw like any other state
Previously, ordinary redraws were missing from terminal mode. Instead,
there was an async callback that invoked update_screen() on terminal
data regardless of mode (as if :redraw! was invoked by a timer).
This created some issues:
- async changes to an unrelated ordinary buffer were not always redrawn in
terminal mode
- screen cursor position was not properly updated in terminal mode (partial
fix, will be properly fixed in a follow up PR)
- ad-hoc logic was needed for interaction with special states such as
inccommand or horizontal wildmenu.
Instead redraw terminal mode just like any other state. This disables forced
redraws in cmdline mode, which were inconisent which async changes to
normal buffers (which are not redrawn in cmdline mode).
Diffstat (limited to 'test/functional/terminal/window_split_tab_spec.lua')
-rw-r--r-- | test/functional/terminal/window_split_tab_spec.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/functional/terminal/window_split_tab_spec.lua b/test/functional/terminal/window_split_tab_spec.lua index c0ce656bb1..ad70b3d14f 100644 --- a/test/functional/terminal/window_split_tab_spec.lua +++ b/test/functional/terminal/window_split_tab_spec.lua @@ -69,7 +69,7 @@ describe(':terminal', function() end) it('forwards resize request to the program', function() - feed([[<C-\><C-N>G:]]) -- Go to cmdline-mode, so cursor is at bottom. + feed([[<C-\><C-N>G]]) local w1, h1 = screen._width - 3, screen._height - 2 local w2, h2 = w1 - 6, h1 - 3 @@ -92,16 +92,16 @@ describe(':terminal', function() | | | + ^ | | - :^ | ]]) screen:try_resize(w2, h2) screen:expect([[ tty ready | rows: 7, cols: 47 | rows: 4, cols: 41 | - {2: } | - :^ | + {2:^ } | + | ]]) end) end) |