diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-10-02 21:29:55 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-10-02 21:29:55 +0100 |
commit | f6196f424474e2a9c160f2a995fc2691f82b58f9 (patch) | |
tree | ba662de7c6737ae250b30a08b1ba126ec94481aa /src/structs.h | |
parent | ff85d4a1076dc7d6fc3102f6560df3ad1af696ae (diff) |
patch 9.0.0640: cannot scroll by screen line if a line wrapsv9.0.0640
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.
Diffstat (limited to 'src/structs.h')
-rw-r--r-- | src/structs.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/structs.h b/src/structs.h index 4caff2db72..f3e65be22e 100644 --- a/src/structs.h +++ b/src/structs.h @@ -262,6 +262,8 @@ typedef struct #endif long wo_scr; #define w_p_scr w_onebuf_opt.wo_scr // 'scroll' + int wo_sms; +#define w_p_sms w_onebuf_opt.wo_sms // 'smoothscroll' #ifdef FEAT_SPELL int wo_spell; # define w_p_spell w_onebuf_opt.wo_spell // 'spell' @@ -3592,11 +3594,12 @@ struct window_S // below w_topline (at end of file) int w_old_botfill; // w_botfill at last redraw #endif - colnr_T w_leftcol; // window column number of the left most + colnr_T w_leftcol; // screen column number of the left most // character in the window; used when // 'wrap' is off - colnr_T w_skipcol; // starting column when a single line - // doesn't fit in the window + colnr_T w_skipcol; // starting screen column for the first + // line in the window; used when 'wrap' is + // on int w_empty_rows; // number of ~ rows in window #ifdef FEAT_DIFF |