aboutsummaryrefslogtreecommitdiff
path: root/test/functional/terminal/scrollback_spec.lua
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2019-05-14 13:39:00 +0200
committerGitHub <noreply@github.com>2019-05-14 13:39:00 +0200
commit94f78ccf89a2bd536876859e33f40965b5ffb27d (patch)
tree92ce898b91ad7301f47553ff47e14bb1a4667cfc /test/functional/terminal/scrollback_spec.lua
parent9e0982a1a2f7178d4492592627c5ef92576fc9ee (diff)
parent5020daa6e5ced9235f5d11317c74f655a129803e (diff)
downloadrneovim-94f78ccf89a2bd536876859e33f40965b5ffb27d.tar.gz
rneovim-94f78ccf89a2bd536876859e33f40965b5ffb27d.tar.bz2
rneovim-94f78ccf89a2bd536876859e33f40965b5ffb27d.zip
Merge pull request #9883 from bfredl/termredraw
make terminal state redraw like any other state
Diffstat (limited to 'test/functional/terminal/scrollback_spec.lua')
-rw-r--r--test/functional/terminal/scrollback_spec.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/functional/terminal/scrollback_spec.lua b/test/functional/terminal/scrollback_spec.lua
index 75bb89a1ab..544325e746 100644
--- a/test/functional/terminal/scrollback_spec.lua
+++ b/test/functional/terminal/scrollback_spec.lua
@@ -142,15 +142,15 @@ describe(':terminal scrollback', function()
describe('and height decreased by 1', function()
if helpers.pending_win32(pending) then return end
local function will_hide_top_line()
- feed([[<C-\><C-N>:]]) -- Go to cmdline-mode, so cursor is at bottom.
+ feed([[<C-\><C-N>]])
screen:try_resize(screen._width - 2, screen._height - 1)
screen:expect([[
line2 |
line3 |
line4 |
rows: 5, cols: 28 |
- {2: } |
- :^ |
+ {2:^ } |
+ |
]])
end
@@ -166,11 +166,11 @@ describe(':terminal scrollback', function()
screen:expect([[
rows: 5, cols: 28 |
rows: 3, cols: 26 |
- {2: } |
- :^ |
+ {2:^ } |
+ |
]])
eq(8, curbuf('line_count'))
- feed([[<C-\><C-N>3k]])
+ feed([[3k]])
screen:expect([[
^line4 |
rows: 5, cols: 28 |