1
0
forked from aniani/vim

patch 9.0.0901: setting w_leftcol and handling side effects is confusing

Problem:    Setting w_leftcol and handling side effects is confusing.
Solution:   Use a function to set w_leftcol() and handle side effects.
This commit is contained in:
Bram Moolenaar
2022-11-18 14:07:20 +00:00
parent 81ba26e9de
commit 0c34d56264
5 changed files with 29 additions and 40 deletions

View File

@@ -19,7 +19,7 @@ void check_cursor_col_win(win_T *win);
void check_cursor(void);
void check_visual_pos(void);
void adjust_cursor_col(void);
int leftcol_changed(void);
int set_leftcol(colnr_T leftcol);
int copy_option_part(char_u **option, char_u *buf, int maxlen, char *sep_chars);
int vim_isspace(int x);
int simplify_key(int key, int *modifiers);