mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 22:48:34 +00:00
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:
@@ -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.
|
||||
///
|
||||
|
Reference in New Issue
Block a user