diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-05-02 11:09:27 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-05-02 12:04:49 +0800 |
commit | 088cdf69e3faf5cf6c9ef743379638127e6e7c0b (patch) | |
tree | 428b3317e9f23899ccaa02395100320d7e2f365b /src | |
parent | 37b73cf14b118ca1583da2a3e89611222bd3e020 (diff) | |
download | rneovim-088cdf69e3faf5cf6c9ef743379638127e6e7c0b.tar.gz rneovim-088cdf69e3faf5cf6c9ef743379638127e6e7c0b.tar.bz2 rneovim-088cdf69e3faf5cf6c9ef743379638127e6e7c0b.zip |
fix(normal): make "g$" work properly with resized grid
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/normal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c index 5a5286905f..88741e1527 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -5349,7 +5349,7 @@ static void nv_g_dollar_cmd(cmdarg_T *cap) colnr_T vcol; getvvcol(curwin, &curwin->w_cursor, NULL, NULL, &vcol); - if (vcol >= curwin->w_leftcol + curwin->w_width - col_off) { + if (vcol >= curwin->w_leftcol + curwin->w_width_inner - col_off) { curwin->w_cursor.col--; } } |