diff options
author | dundargoc <gocdundar@gmail.com> | 2023-12-16 22:14:28 +0100 |
---|---|---|
committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-12-18 16:22:13 +0100 |
commit | 6cb78e2d1c4c6c63c628c965076a07ce5f7adbb6 (patch) | |
tree | 20bfbe8b317fde86121fcf9af10975b2b95e5758 /src/nvim/move.c | |
parent | 8c173cec295cf8c78bdbc440dc87f0473560f69a (diff) | |
download | rneovim-6cb78e2d1c4c6c63c628c965076a07ce5f7adbb6.tar.gz rneovim-6cb78e2d1c4c6c63c628c965076a07ce5f7adbb6.tar.bz2 rneovim-6cb78e2d1c4c6c63c628c965076a07ce5f7adbb6.zip |
docs: add style rule regarding initialization
Specifically, specify that each initialization should be done on a
separate line.
Diffstat (limited to 'src/nvim/move.c')
-rw-r--r-- | src/nvim/move.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/nvim/move.c b/src/nvim/move.c index bbc3d792c0..891aa8f5ce 100644 --- a/src/nvim/move.c +++ b/src/nvim/move.c @@ -1037,7 +1037,9 @@ void curs_columns(win_T *wp, int may_scroll) void textpos2screenpos(win_T *wp, pos_T *pos, int *rowp, int *scolp, int *ccolp, int *ecolp, bool local) { - colnr_T scol = 0, ccol = 0, ecol = 0; + colnr_T scol = 0; + colnr_T ccol = 0; + colnr_T ecol = 0; int row = 0; colnr_T coloff = 0; bool visible_row = false; @@ -1129,7 +1131,9 @@ void f_screenpos(typval_T *argvars, typval_T *rettv, EvalFuncData fptr) pos.col = 0; } int row = 0; - int scol = 0, ccol = 0, ecol = 0; + int scol = 0; + int ccol = 0; + int ecol = 0; textpos2screenpos(wp, &pos, &row, &scol, &ccol, &ecol, false); tv_dict_add_nr(dict, S_LEN("row"), row); |