Mercurial > vim
comparison src/option.c @ 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 | 6a1862bfb280 |
children | c2031ad5ed54 |
comparison
equal
deleted
inserted
replaced
30609:0473728b3784 | 30610:6c6ac189a05f |
---|---|
2962 } | 2962 } |
2963 } | 2963 } |
2964 } | 2964 } |
2965 #endif | 2965 #endif |
2966 | 2966 |
2967 else if ((int *)varp == &curwin->w_p_sms) | |
2968 { | |
2969 if (!curwin->w_p_sms) | |
2970 { | |
2971 curwin->w_skipcol = 0; | |
2972 changed_line_abv_curs(); | |
2973 } | |
2974 } | |
2975 | |
2967 // when 'textmode' is set or reset also change 'fileformat' | 2976 // when 'textmode' is set or reset also change 'fileformat' |
2968 else if ((int *)varp == &curbuf->b_p_tx) | 2977 else if ((int *)varp == &curbuf->b_p_tx) |
2969 { | 2978 { |
2970 set_fileformat(curbuf->b_p_tx ? EOL_DOS : EOL_UNIX, opt_flags); | 2979 set_fileformat(curbuf->b_p_tx ? EOL_DOS : EOL_UNIX, opt_flags); |
2971 } | 2980 } |
5434 #ifdef FEAT_RIGHTLEFT | 5443 #ifdef FEAT_RIGHTLEFT |
5435 case PV_RL: return (char_u *)&(curwin->w_p_rl); | 5444 case PV_RL: return (char_u *)&(curwin->w_p_rl); |
5436 case PV_RLC: return (char_u *)&(curwin->w_p_rlc); | 5445 case PV_RLC: return (char_u *)&(curwin->w_p_rlc); |
5437 #endif | 5446 #endif |
5438 case PV_SCROLL: return (char_u *)&(curwin->w_p_scr); | 5447 case PV_SCROLL: return (char_u *)&(curwin->w_p_scr); |
5448 case PV_SMS: return (char_u *)&(curwin->w_p_sms); | |
5439 case PV_WRAP: return (char_u *)&(curwin->w_p_wrap); | 5449 case PV_WRAP: return (char_u *)&(curwin->w_p_wrap); |
5440 #ifdef FEAT_LINEBREAK | 5450 #ifdef FEAT_LINEBREAK |
5441 case PV_LBR: return (char_u *)&(curwin->w_p_lbr); | 5451 case PV_LBR: return (char_u *)&(curwin->w_p_lbr); |
5442 case PV_BRI: return (char_u *)&(curwin->w_p_bri); | 5452 case PV_BRI: return (char_u *)&(curwin->w_p_bri); |
5443 case PV_BRIOPT: return (char_u *)&(curwin->w_p_briopt); | 5453 case PV_BRIOPT: return (char_u *)&(curwin->w_p_briopt); |