mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
patch 9.0.0640: cannot scroll by screen line if a line wraps
Problem: Cannot scroll by screen line if a line wraps. Solution: Add the 'smoothscroll' option. Only works for CTRL-E and CTRL-Y so far.
This commit is contained in:
@@ -194,6 +194,7 @@
|
||||
#endif
|
||||
#define PV_SCBIND OPT_WIN(WV_SCBIND)
|
||||
#define PV_SCROLL OPT_WIN(WV_SCROLL)
|
||||
#define PV_SMS OPT_WIN(WV_SMS)
|
||||
#define PV_SISO OPT_BOTH(OPT_WIN(WV_SISO))
|
||||
#define PV_SO OPT_BOTH(OPT_WIN(WV_SO))
|
||||
#ifdef FEAT_SPELL
|
||||
@@ -2282,6 +2283,9 @@ static struct vimoption options[] =
|
||||
{"smarttab", "sta", P_BOOL|P_VI_DEF|P_VIM,
|
||||
(char_u *)&p_sta, PV_NONE,
|
||||
{(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
|
||||
{"smoothscroll", "sms", P_BOOL|P_VI_DEF|P_RWIN,
|
||||
(char_u *)VAR_WIN, PV_SMS,
|
||||
{(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
|
||||
{"softtabstop", "sts", P_NUM|P_VI_DEF|P_VIM,
|
||||
(char_u *)&p_sts, PV_STS,
|
||||
{(char_u *)0L, (char_u *)0L} SCTX_INIT},
|
||||
|
Reference in New Issue
Block a user