aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-11-14 20:55:25 +0100
committerGitHub <noreply@github.com>2017-11-14 20:55:25 +0100
commit67e45292925daf08d353581c1a9999eb0e2202dd (patch)
tree02deae38aeacb03694f1885b6727958b19b3dba4
parent30a21830d06f1e99431c2a632133577841b10c32 (diff)
downloadrneovim-67e45292925daf08d353581c1a9999eb0e2202dd.tar.gz
rneovim-67e45292925daf08d353581c1a9999eb0e2202dd.tar.bz2
rneovim-67e45292925daf08d353581c1a9999eb0e2202dd.zip
defaults: scrollback=10000 (#7556)
-rw-r--r--runtime/doc/options.txt2
-rw-r--r--src/nvim/options.lua2
-rw-r--r--test/functional/terminal/scrollback_spec.lua4
3 files changed, 4 insertions, 4 deletions
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt
index f58532824c..026cfbe2eb 100644
--- a/runtime/doc/options.txt
+++ b/runtime/doc/options.txt
@@ -4789,7 +4789,7 @@ A jump table for the options with a short description can be found at |Q_op|.
height with ":set scroll=0".
*'scrollback'* *'scbk'*
-'scrollback' 'scbk' number (default: 1000
+'scrollback' 'scbk' number (default: 10000
in normal buffers: -1)
local to buffer
Maximum number of lines kept beyond the visible screen. Lines at the
diff --git a/src/nvim/options.lua b/src/nvim/options.lua
index 7cecb16686..29220a6b50 100644
--- a/src/nvim/options.lua
+++ b/src/nvim/options.lua
@@ -1924,7 +1924,7 @@ return {
vi_def=true,
varname='p_scbk',
redraw={'current_buffer'},
- defaults={if_true={vi=1000}}
+ defaults={if_true={vi=10000}}
},
{
full_name='scrollbind', abbreviation='scb',
diff --git a/test/functional/terminal/scrollback_spec.lua b/test/functional/terminal/scrollback_spec.lua
index af9b414311..c665e64a80 100644
--- a/test/functional/terminal/scrollback_spec.lua
+++ b/test/functional/terminal/scrollback_spec.lua
@@ -462,10 +462,10 @@ describe("'scrollback' option", function()
screen:detach()
end)
- it('defaults to 1000 in terminal buffers', function()
+ it('defaults to 10000 in terminal buffers', function()
set_fake_shell()
command('terminal')
- eq(1000, curbufmeths.get_option('scrollback'))
+ eq(10000, curbufmeths.get_option('scrollback'))
end)
it('error if set to invalid value', function()