:terminal : set topline based on window height #8325

This commit is contained in:
Justin M. Keyes
2019-02-06 04:12:14 +01:00
committed by GitHub
parent aaa8c3d711
commit 1204421888
10 changed files with 29 additions and 14 deletions

View File

@@ -12,7 +12,7 @@ local curbufmeths = helpers.curbufmeths
local nvim = helpers.nvim
local feed_data = thelpers.feed_data
describe('terminal scrollback', function()
describe(':terminal scrollback', function()
local screen
before_each(function()
@@ -344,7 +344,7 @@ describe('terminal scrollback', function()
end)
end)
describe('terminal prints more lines than the screen height and exits', function()
describe(':terminal prints more lines than the screen height and exits', function()
it('will push extra lines to scrollback', function()
clear()
local screen = Screen.new(30, 7)
@@ -460,7 +460,7 @@ describe("'scrollback' option", function()
screen:detach()
end)
it('defaults to 10000 in terminal buffers', function()
it('defaults to 10000 in :terminal buffers', function()
set_fake_shell()
command('terminal')
eq(10000, curbufmeths.get_option('scrollback'))