Mercurial > vim
diff src/proto/drawline.pro @ 32507:2614026cd259 v9.0.1585
patch 9.0.1585: weird use of static variables for spell checking
Commit: https://github.com/vim/vim/commit/30805a1aba0067cf0087f9a0e5c184562433e2e7
Author: Luuk van Baal <luukvbaal@gmail.com>
Date: Sat May 27 22:22:10 2023 +0100
patch 9.0.1585: weird use of static variables for spell checking
Problem: Weird use of static variables for spell checking.
Solution: Move the variables to a structure and pass them from win_update()
to win_line(). (Luuk van Baal, closes #12448)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 27 May 2023 23:30:03 +0200 |
parents | 1c43d8bad31d |
children | 448aef880252 |
line wrap: on
line diff
--- a/src/proto/drawline.pro +++ b/src/proto/drawline.pro @@ -1,4 +1,4 @@ /* drawline.c */ int text_prop_position(win_T *wp, textprop_T *tp, int vcol, int scr_col, int *n_extra, char_u **p_extra, int *n_attr, int *n_attr_skip, int do_skip); -int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, int nochange, int number_only); +int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, int number_only, spellvars_T *spv); /* vim: set ft=c : */