vim-patch:9.1.0184: Cursor pos wrong when clicking with conceal and wrap (#27890)

Problem:  Cursor position wrong when clicking with conceal and wrap.
Solution: Use the virtual column of the last char for ScreenCols[] in
          boguscols.  Remove use of MAXCOL in ScreenCols[].  Rename
          third argument of wlv_screen_line() to "clear_end" as that's
          clearer what it does (zeertzjq).

related: 14192
closes: vim/vim#14200

d0c1b7723f

Rename win_put_linebuf() to wlv_put_linebuf().
This commit is contained in:
zeertzjq
2024-03-17 07:26:39 +08:00
committed by GitHub
parent 34b57508a7
commit d114dbe9f7
5 changed files with 167 additions and 122 deletions

View File

@@ -27,8 +27,12 @@ EXTERN sattr_T *linebuf_attr INIT( = NULL);
EXTERN colnr_T *linebuf_vcol INIT( = NULL);
EXTERN char *linebuf_scratch INIT( = NULL);
// Low-level functions to manipulate individual character cells on the
// screen grid.
/// flags for grid_put_linebuf()
enum {
SLF_RIGHTLEFT = 1,
SLF_WRAP = 2,
SLF_INC_VCOL = 4,
};
/// Put a ASCII character in a screen cell.
///