diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2018-10-25 17:40:24 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2018-10-25 17:46:58 +0200 |
commit | 6994cc4d1ae5cde52e0208d01efcffbd7a34e5e9 (patch) | |
tree | 56637a9af9a87f120b2c7fae8146d8e3367060fd /test/functional/ui/screen_basic_spec.lua | |
parent | c03a0f5fc82d91cc29e81d02e4440eb8fd9cad12 (diff) | |
download | rneovim-6994cc4d1ae5cde52e0208d01efcffbd7a34e5e9.tar.gz rneovim-6994cc4d1ae5cde52e0208d01efcffbd7a34e5e9.tar.bz2 rneovim-6994cc4d1ae5cde52e0208d01efcffbd7a34e5e9.zip |
UI: add missing redraw after enter_tabpage
redraw_all_later() isn't guaranteed to update must_redraw after
switching tab, we must do it ourselves.
fixes #9152
Diffstat (limited to 'test/functional/ui/screen_basic_spec.lua')
-rw-r--r-- | test/functional/ui/screen_basic_spec.lua | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/test/functional/ui/screen_basic_spec.lua b/test/functional/ui/screen_basic_spec.lua index 3e930b0ae7..1a8b7d543a 100644 --- a/test/functional/ui/screen_basic_spec.lua +++ b/test/functional/ui/screen_basic_spec.lua @@ -449,6 +449,46 @@ local function screen_tests(linegrid) | ]]) end) + + it('redraws unvisited tab #9152', function() + insert('hello') + -- create a tab without visiting it + command('tabnew|tabnext') + screen:expect([[ + {2: + [No Name] }{4: [No Name] }{3: }{4:X}| + hell^o | + {0:~ }| + {0:~ }| + {0:~ }| + {0:~ }| + {0:~ }| + {0:~ }| + {0:~ }| + {0:~ }| + {0:~ }| + {0:~ }| + {0:~ }| + | + ]]) + + feed('gT') + screen:expect([[ + {4: + [No Name] }{2: [No Name] }{3: }{4:X}| + ^ | + {0:~ }| + {0:~ }| + {0:~ }| + {0:~ }| + {0:~ }| + {0:~ }| + {0:~ }| + {0:~ }| + {0:~ }| + {0:~ }| + {0:~ }| + | + ]]) + end) end) describe('insert mode', function() |