aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runtime/doc/options.txt2
-rw-r--r--runtime/doc/vim_diff.txt1
-rw-r--r--src/nvim/options.lua2
-rw-r--r--test/functional/ex_cmds/drop_spec.lua1
4 files changed, 4 insertions, 2 deletions
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt
index c3618328aa..555d4fd37b 100644
--- a/runtime/doc/options.txt
+++ b/runtime/doc/options.txt
@@ -3078,7 +3078,7 @@ A jump table for the options with a short description can be found at |Q_op|.
See |help-translated|.
*'hidden'* *'hid'* *'nohidden'* *'nohid'*
-'hidden' 'hid' boolean (default off)
+'hidden' 'hid' boolean (default on)
global
When off a buffer is unloaded when it is |abandon|ed. When on a
buffer becomes hidden when it is |abandon|ed. If the buffer is still
diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt
index 7e1bd3e087..49996fd8b3 100644
--- a/runtime/doc/vim_diff.txt
+++ b/runtime/doc/vim_diff.txt
@@ -41,6 +41,7 @@ the differences.
- 'fillchars' defaults (in effect) to "vert:│,fold:·,sep:│"
- 'formatoptions' defaults to "tcqj"
- 'fsync' is disabled
+- 'hidden' is enabled
- 'history' defaults to 10000 (the maximum)
- 'hlsearch' is enabled
- 'incsearch' is enabled
diff --git a/src/nvim/options.lua b/src/nvim/options.lua
index a44664d780..685c063e62 100644
--- a/src/nvim/options.lua
+++ b/src/nvim/options.lua
@@ -1081,7 +1081,7 @@ return {
short_desc=N_("don't unload buffer when it is |abandon|ed"),
type='bool', scope={'global'},
varname='p_hid',
- defaults={if_true=false}
+ defaults={if_true=true}
},
{
full_name='highlight', abbreviation='hl',
diff --git a/test/functional/ex_cmds/drop_spec.lua b/test/functional/ex_cmds/drop_spec.lua
index ef53fe75e3..9d84a2d4f6 100644
--- a/test/functional/ex_cmds/drop_spec.lua
+++ b/test/functional/ex_cmds/drop_spec.lua
@@ -55,6 +55,7 @@ describe(":drop", function()
end)
it("splits off a new window when a buffer can't be abandoned", function()
+ command("set nohidden")
feed_command("edit tmp1")
feed_command("vsplit")
feed_command("edit tmp2")