diff options
author | Dylan Thacker-Smith <dylan.ah.smith@gmail.com> | 2024-03-24 09:43:25 +0100 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-03-24 09:43:25 +0100 |
commit | b2d124c6258ff41e1f951bf39a4afc386d79ddc4 (patch) | |
tree | 553f0db370d31fbdb8752e25aba51cb6cf70586b /src/proto/charset.pro | |
parent | d3c0ff5d5a9076999a8504ee4d23a2c5abaf494e (diff) |
patch 9.1.0200: `gj`/`gk` not skipping over outer virtual text linesv9.1.0200
Problem: `gj`/`gk` was updating the desired cursor virtual column to
the outer virtual text, even though the actual cursor position
was moved to not be on the virtual text, leading the need to
do an extra `gj`/`gk` to move past each virtual text line.
(rickhowe)
Solution: Exclude the outer virtual text when getting the line length
for moving the cursor with `gj`/`gk`, so that no extra
movement is needed to skip over virtual text lines.
(Dylan Thacker-Smith)
fixes: #12028
related: #14262
Signed-off-by: Dylan Thacker-Smith <dylan.ah.smith@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/proto/charset.pro')
-rw-r--r-- | src/proto/charset.pro | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/proto/charset.pro b/src/proto/charset.pro index c915c5802f..a74731931d 100644 --- a/src/proto/charset.pro +++ b/src/proto/charset.pro @@ -20,6 +20,7 @@ int linetabsize_str(char_u *s); int linetabsize_col(int startcol, char_u *s); int win_linetabsize(win_T *wp, linenr_T lnum, char_u *line, colnr_T len); int linetabsize(win_T *wp, linenr_T lnum); +int linetabsize_no_outer(win_T *wp, linenr_T lnum); void win_linetabsize_cts(chartabsize_T *cts, colnr_T len); int vim_isIDc(int c); int vim_isNormalIDc(int c); |