aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/grid.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-06-11 11:29:39 +0800
committerGitHub <noreply@github.com>2023-06-11 11:29:39 +0800
commit2237b384e4027af7c977a4be01d792fcb790819c (patch)
treea7bbd4a8e4909d2eb5338173d65230810b3c51f0 /src/nvim/grid.c
parent302d3cfb96d7f0c856262e1a4252d058e3300c8b (diff)
downloadrneovim-2237b384e4027af7c977a4be01d792fcb790819c.tar.gz
rneovim-2237b384e4027af7c977a4be01d792fcb790819c.tar.bz2
rneovim-2237b384e4027af7c977a4be01d792fcb790819c.zip
vim-patch:9.0.1626: Visual area not shown when using 'showbreak' (#23978)
Problem: Visual area not shown when using 'showbreak' and start of line is not visible. (Jaehwang Jung) Solution: Adjust "fromcol" for the space taken by 'showbreak'. (closes vim/vim#12514) https://github.com/vim/vim/commit/f578ca2c8f36b61ac3301fe8b59a8473c964cdc2 Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/grid.c')
-rw-r--r--src/nvim/grid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/grid.c b/src/nvim/grid.c
index f2ceb2ac24..11cd691f22 100644
--- a/src/nvim/grid.c
+++ b/src/nvim/grid.c
@@ -540,7 +540,7 @@ void grid_put_linebuf(ScreenGrid *grid, int row, int coloff, int endcol, int cle
size_t skip = 0;
if (wp->w_p_nu && wp->w_p_rnu) {
// do not overwrite the line number, change "123 text" to
- // "123>>>xt".
+ // "123<<<xt".
while (skip < max_off_from && ascii_isdigit(*linebuf_char[off])) {
off++;
skip++;