comparison src/structs.h @ 30610:6c6ac189a05f v9.0.0640

patch 9.0.0640: cannot scroll by screen line if a line wraps Commit: https://github.com/vim/vim/commit/f6196f424474e2a9c160f2a995fc2691f82b58f9 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Oct 2 21:29:55 2022 +0100 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.
author Bram Moolenaar <Bram@vim.org>
date Sun, 02 Oct 2022 22:30:15 +0200
parents 72e6073a2822
children f2f35161d75a
comparison
equal deleted inserted replaced
30609:0473728b3784 30610:6c6ac189a05f
260 char_u *wo_rlc; 260 char_u *wo_rlc;
261 # define w_p_rlc w_onebuf_opt.wo_rlc // 'rightleftcmd' 261 # define w_p_rlc w_onebuf_opt.wo_rlc // 'rightleftcmd'
262 #endif 262 #endif
263 long wo_scr; 263 long wo_scr;
264 #define w_p_scr w_onebuf_opt.wo_scr // 'scroll' 264 #define w_p_scr w_onebuf_opt.wo_scr // 'scroll'
265 int wo_sms;
266 #define w_p_sms w_onebuf_opt.wo_sms // 'smoothscroll'
265 #ifdef FEAT_SPELL 267 #ifdef FEAT_SPELL
266 int wo_spell; 268 int wo_spell;
267 # define w_p_spell w_onebuf_opt.wo_spell // 'spell' 269 # define w_p_spell w_onebuf_opt.wo_spell // 'spell'
268 #endif 270 #endif
269 #ifdef FEAT_SYN_HL 271 #ifdef FEAT_SYN_HL
3590 int w_old_topfill; // w_topfill at last redraw 3592 int w_old_topfill; // w_topfill at last redraw
3591 int w_botfill; // TRUE when filler lines are actually 3593 int w_botfill; // TRUE when filler lines are actually
3592 // below w_topline (at end of file) 3594 // below w_topline (at end of file)
3593 int w_old_botfill; // w_botfill at last redraw 3595 int w_old_botfill; // w_botfill at last redraw
3594 #endif 3596 #endif
3595 colnr_T w_leftcol; // window column number of the left most 3597 colnr_T w_leftcol; // screen column number of the left most
3596 // character in the window; used when 3598 // character in the window; used when
3597 // 'wrap' is off 3599 // 'wrap' is off
3598 colnr_T w_skipcol; // starting column when a single line 3600 colnr_T w_skipcol; // starting screen column for the first
3599 // doesn't fit in the window 3601 // line in the window; used when 'wrap' is
3602 // on
3600 3603
3601 int w_empty_rows; // number of ~ rows in window 3604 int w_empty_rows; // number of ~ rows in window
3602 #ifdef FEAT_DIFF 3605 #ifdef FEAT_DIFF
3603 int w_filler_rows; // number of filler rows at the end of the 3606 int w_filler_rows; // number of filler rows at the end of the
3604 // window 3607 // window