aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/edit.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-05-13 23:08:01 +0800
committerGitHub <noreply@github.com>2023-05-13 23:08:01 +0800
commit79d5f06f79ca2f84a89be3fe2b3d498a72e37a55 (patch)
treee960618fe3e508a432ee9b814a387f8bf8c22024 /src/nvim/edit.c
parent6f29c68928c3f20d9a1b1a7a311cfac65aa1b4e6 (diff)
parentcd9ca700e5053f8a9666c917310dcc39651e3bfa (diff)
downloadrneovim-79d5f06f79ca2f84a89be3fe2b3d498a72e37a55.tar.gz
rneovim-79d5f06f79ca2f84a89be3fe2b3d498a72e37a55.tar.bz2
rneovim-79d5f06f79ca2f84a89be3fe2b3d498a72e37a55.zip
Merge pull request #23612 from zeertzjq/vim-9.0.0064
vim-patch:9.0.{0064,0218,0249,0490,0492,0598}: cmdwin fixes
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r--src/nvim/edit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c
index 7670d6754f..e3321a8b99 100644
--- a/src/nvim/edit.c
+++ b/src/nvim/edit.c
@@ -1528,8 +1528,9 @@ void edit_unputchar(void)
// Called when p_dollar is set: display a '$' at the end of the changed text
// Only works when cursor is in the line that changes.
-void display_dollar(colnr_T col)
+void display_dollar(colnr_T col_arg)
{
+ colnr_T col = col_arg < 0 ? 0 : col_arg;
colnr_T save_col;
if (!redrawing()) {