vim-patch:3918f32: runtime(doc): fix incorrect description of 'scrolloffpad'

closes: vim/vim#20029

3918f3232f
This commit is contained in:
zeertzjq
2026-04-22 09:55:48 +08:00
parent 8f1e14ffa2
commit 25b7fe5ada
4 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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' },

View File

@@ -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',
},