aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/mouse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/mouse.c')
-rw-r--r--src/nvim/mouse.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nvim/mouse.c b/src/nvim/mouse.c
index 09352b370e..ead8dc2195 100644
--- a/src/nvim/mouse.c
+++ b/src/nvim/mouse.c
@@ -1648,8 +1648,6 @@ bool mouse_scroll_horiz(int dir)
return false;
}
- curwin->w_leftcol = (colnr_T)leftcol;
-
// When the line of the cursor is too short, move the cursor to the
// longest visible line.
if (!virtual_active()
@@ -1658,7 +1656,7 @@ bool mouse_scroll_horiz(int dir)
curwin->w_cursor.col = 0;
}
- return leftcol_changed();
+ return set_leftcol(leftcol);
}
/// Adjusts the clicked column position when 'conceallevel' > 0