aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-09-19 18:05:27 +0800
committerGitHub <noreply@github.com>2024-09-19 18:05:27 +0800
commit7dbbaaec3fae62667b273c4c2d362bee91316083 (patch)
tree4d3c134477abbb78c08fd2ba89f6e7103edc4d65 /runtime
parent0fe4362e216e659e5236cf49beba0e10cce0579d (diff)
downloadrneovim-7dbbaaec3fae62667b273c4c2d362bee91316083.tar.gz
rneovim-7dbbaaec3fae62667b273c4c2d362bee91316083.tar.bz2
rneovim-7dbbaaec3fae62667b273c4c2d362bee91316083.zip
refactor!: rename 'jumpoptions' flag "unload" to "clean" (#30418)
Follow-up to #29347
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/news.txt4
-rw-r--r--runtime/doc/options.txt4
-rw-r--r--runtime/doc/vim_diff.txt4
-rw-r--r--runtime/lua/vim/_meta/options.lua4
4 files changed, 10 insertions, 6 deletions
diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt
index 1d95886356..e0e90f78ec 100644
--- a/runtime/doc/news.txt
+++ b/runtime/doc/news.txt
@@ -18,6 +18,10 @@ BREAKING CHANGES IN HEAD *news-breaking-dev*
The following changes to UNRELEASED features were made during the development
cycle (Nvim HEAD, the "master" branch).
+OPTIONS
+
+• 'jumpoptions' flag "unload" has been renamed to "clean".
+
==============================================================================
BREAKING CHANGES *news-breaking*
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt
index e7190e718d..cf6fb000f4 100644
--- a/runtime/doc/options.txt
+++ b/runtime/doc/options.txt
@@ -3665,7 +3665,7 @@ A jump table for the options with a short description can be found at |Q_op|.
Otherwise only one space is inserted.
*'jumpoptions'* *'jop'*
-'jumpoptions' 'jop' string (default "unload")
+'jumpoptions' 'jop' string (default "clean")
global
List of words that change the behavior of the |jumplist|.
stack Make the jumplist behave like the tagstack.
@@ -3678,7 +3678,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|alternate-file| or using |mark-motions| try to
restore the |mark-view| in which the action occurred.
- unload Remove unloaded buffers from the jumplist.
+ clean Remove unloaded buffers from the jumplist.
EXPERIMENTAL: this flag may change in the future.
*'keymap'* *'kmp'*
diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt
index b2e8476fd7..d0868b5605 100644
--- a/runtime/doc/vim_diff.txt
+++ b/runtime/doc/vim_diff.txt
@@ -62,7 +62,7 @@ Defaults *nvim-defaults*
- 'isfname' does not include ":" (on Windows). Drive letters are handled
correctly without it. (Use |gF| for filepaths suffixed with ":line:col").
- 'joinspaces' is disabled
-- 'jumpoptions' defaults to "unload"
+- 'jumpoptions' defaults to "clean"
- 'langnoremap' is enabled
- 'langremap' is disabled
- 'laststatus' defaults to 2 (statusline is always shown)
@@ -348,7 +348,7 @@ string options work.
and |:command-preview| commands
- 'jumpoptions'
- "view" tries to restore |mark-view| when moving through the jumplist.
- - "unload" removes unloaded buffers from the jumplist.
+ - "clean" removes unloaded buffers from the jumplist.
- the |jumplist|, |changelist|, |alternate-file| or using |mark-motions|.
- 'laststatus' global statusline support
- 'mousescroll' amount to scroll by when scrolling with a mouse
diff --git a/runtime/lua/vim/_meta/options.lua b/runtime/lua/vim/_meta/options.lua
index 7456be0ae0..923d279887 100644
--- a/runtime/lua/vim/_meta/options.lua
+++ b/runtime/lua/vim/_meta/options.lua
@@ -3577,11 +3577,11 @@ vim.go.js = vim.go.joinspaces
--- |alternate-file` or using `mark-motions` try to
--- restore the `mark-view` in which the action occurred.
---
---- unload Remove unloaded buffers from the jumplist.
+--- clean Remove unloaded buffers from the jumplist.
--- EXPERIMENTAL: this flag may change in the future.
---
--- @type string
-vim.o.jumpoptions = "unload"
+vim.o.jumpoptions = "clean"
vim.o.jop = vim.o.jumpoptions
vim.go.jumpoptions = vim.o.jumpoptions
vim.go.jop = vim.go.jumpoptions