diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-10-31 21:33:00 +0100 |
---|---|---|
committer | bfredl <bjorn.linse@gmail.com> | 2023-11-03 11:35:42 +0100 |
commit | 44f0480a22af8f87f8784dac430416cb9913adea (patch) | |
tree | aeb487ea271274f92c59c275bf6cb26e42ed2eac /src/nvim/grid_defs.h | |
parent | d4dc1355eda78ca2a8aece08d1ab6c6bc1e91505 (diff) | |
download | rneovim-44f0480a22af8f87f8784dac430416cb9913adea.tar.gz rneovim-44f0480a22af8f87f8784dac430416cb9913adea.tar.bz2 rneovim-44f0480a22af8f87f8784dac430416cb9913adea.zip |
refactor(grid): implement rightleftcmd as a post-processing step
Previously, 'rightleftcmd' was implemented by having all code which
would affect msg_col or output screen cells be conditional on `cmdmsg_rl`.
This change removes all that and instead implements rightleft as a
mirroring post-processing step.
Diffstat (limited to 'src/nvim/grid_defs.h')
-rw-r--r-- | src/nvim/grid_defs.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/grid_defs.h b/src/nvim/grid_defs.h index c65c273d57..390b2a848a 100644 --- a/src/nvim/grid_defs.h +++ b/src/nvim/grid_defs.h @@ -16,7 +16,9 @@ // otherwise it must be a UTF-8 string of length maximum 4 (no NUL when n=4) typedef uint32_t schar_T; -typedef int sattr_T; +typedef int32_t sattr_T; +// must be at least as big as the biggest of schar_T, sattr_T, col_T +typedef int32_t sscratch_T; enum { kZIndexDefaultGrid = 0, |