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

closes: vim/vim#20029

https://github.com/vim/vim/commit/3918f3232f874b3c96f8bfccc5049711f16c252e
This commit is contained in:
zeertzjq committed 2026-04-22 10:14:53 +08:00
1 parent 8f1e14ffa2
commit 25b7fe5ada
4 files changed
+4 -4

No files matched your search

+1 -1
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
+1 -1
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
+1 -1
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' },
+1 -1
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',
},