aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/options.lua
diff options
context:
space:
mode:
authorMarco Hinz <mh.codebro+github@gmail.com>2019-02-04 02:53:23 +0100
committerJustin M. Keyes <justinkz@gmail.com>2019-02-04 02:53:23 +0100
commit91688b488310ae45ea5874df8729e7dfe554c0bc (patch)
tree01b240279dd6369adeb782a73902f9ecab9516e6 /src/nvim/options.lua
parent70f6939fd4b5e0f03dc606eedae13ef28fc0f9dd (diff)
downloadrneovim-91688b488310ae45ea5874df8729e7dfe554c0bc.tar.gz
rneovim-91688b488310ae45ea5874df8729e7dfe554c0bc.tar.bz2
rneovim-91688b488310ae45ea5874df8729e7dfe554c0bc.zip
options: set 'scrollback' to -1 by default #9563
Makes the 'scrollback' option more consistent (same default for all buffers) and future-proof. - Default to -1 for all buffers, but treat it as an implementation detail. - Document range of 1 - 100_000. - New terminal buffer by default sets scrollback=10_000 if the global default is -1. - Existing terminal buffer: On entering terminal-mode or on refresh, if the user explicitly did `:set[local] scbk=-1`, the local value goes to 100_000 (max). (This is undocumented on purpose. Users should work with explicit values in the range of 1-100_000.)
Diffstat (limited to 'src/nvim/options.lua')
-rw-r--r--src/nvim/options.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/options.lua b/src/nvim/options.lua
index 222ec5457b..127c15dd5a 100644
--- a/src/nvim/options.lua
+++ b/src/nvim/options.lua
@@ -1930,7 +1930,7 @@ return {
vi_def=true,
varname='p_scbk',
redraw={'current_buffer'},
- defaults={if_true={vi=10000}}
+ defaults={if_true={vi=-1}}
},
{
full_name='scrollbind', abbreviation='scb',