summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2026-04-22 09:55:48 +0800
committerzeertzjq <zeertzjq@outlook.com>2026-04-22 10:14:53 +0800
commit25b7fe5ada09a987352298f3674dc36f6409ece8 (patch)
treeab817505804e15d855741d930499c7b6275a86d2
parent8f1e14ffa28787fc4faa8b645f378c23735f5bbe (diff)
vim-patch:3918f32: runtime(doc): fix incorrect description of 'scrolloffpad'
closes: vim/vim#20029 https://github.com/vim/vim/commit/3918f3232f874b3c96f8bfccc5049711f16c252e
-rw-r--r--runtime/doc/news.txt2
-rw-r--r--runtime/doc/quickref.txt2
-rw-r--r--runtime/scripts/optwin.lua2
-rw-r--r--src/nvim/options.lua2
4 files changed, 4 insertions, 4 deletions
diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt
index 7b6fb6733a..9f78179c61 100644
--- a/runtime/doc/news.txt
+++ b/runtime/doc/news.txt
@@ -159,7 +159,7 @@ the same range instances now compare equal.
OPTIONS
-• 'scrolloffpad' allows keeping 'scrolloff' context at the end of file.
+• 'scrolloffpad' allows vertically centering cursor at the end of file.
• 'winpinned' prevents window from closing unless specifically targeted.
PERFORMANCE
diff --git a/runtime/doc/quickref.txt b/runtime/doc/quickref.txt
index 0e52eeefa6..9fc8770dd3 100644
--- a/runtime/doc/quickref.txt
+++ b/runtime/doc/quickref.txt
@@ -841,7 +841,7 @@ Short explanation of each option: *option-list*
'scrollbind' 'scb' scroll in window as other windows scroll
'scrolljump' 'sj' minimum number of lines to scroll
'scrolloff' 'so' minimum nr. of lines above and below cursor
-'scrolloffpad' 'sop' keep 'scrolloff' context at end of file
+'scrolloffpad' 'sop' vertically center cursor at end of file
'scrollopt' 'sbo' how 'scrollbind' should behave
'sections' 'sect' nroff macros that separate sections
'secure' secure mode for reading .vimrc in current dir
diff --git a/runtime/scripts/optwin.lua b/runtime/scripts/optwin.lua
index 84d3c828ec..ff5bd8d7f6 100644
--- a/runtime/scripts/optwin.lua
+++ b/runtime/scripts/optwin.lua
@@ -59,7 +59,7 @@ local options_list = {
{ 'scroll', N_ 'number of lines to scroll for CTRL-U and CTRL-D' },
{ 'smoothscroll', N_ 'scroll by screen line' },
{ 'scrolloff', N_ 'number of screen lines to show around the cursor' },
- { 'scrolloffpad', N_ "keep 'scrolloff' context even at end of file" },
+ { 'scrolloffpad', N_ 'vertically center cursor even at end of file' },
{ 'wrap', N_ 'long lines wrap' },
{ 'linebreak', N_ "wrap long lines at a character in 'breakat'" },
{ 'breakindent', N_ 'preserve indentation in wrapped text' },
diff --git a/src/nvim/options.lua b/src/nvim/options.lua
index d749aefa00..666888abcd 100644
--- a/src/nvim/options.lua
+++ b/src/nvim/options.lua
@@ -7272,7 +7272,7 @@ local options = {
]=],
full_name = 'scrolloffpad',
scope = { 'global', 'win' },
- short_desc = N_("keep 'scrolloff' context even at end of file"),
+ short_desc = N_('vertically center cursor even at end of file'),
type = 'number',
varname = 'p_sop',
},