summaryrefslogtreecommitdiff
path: root/src/move.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-02-04 23:35:00 +0100
committerBram Moolenaar <Bram@vim.org>2012-02-04 23:35:00 +0100
commit76b9b3696c4381524e31d9e19efef1ba80271a44 (patch)
treeee0e0cc0cbf7f792ac04e5217cda4c3461646a64 /src/move.c
parentd87fbc2b1cd106c3fa0e47329326ea33c90a3287 (diff)
downloadvim-git-76b9b3696c4381524e31d9e19efef1ba80271a44.tar.gz
updated for version 7.3.426v7.3.426
Problem: With '$' in 'cpoptions' the $ is not displayed in the first column. Solution: Use -1 instead of 0 as a special value. (Hideki Eiraku and Hirohito Higashi)
Diffstat (limited to 'src/move.c')
-rw-r--r--src/move.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/move.c b/src/move.c
index f922da8e4..ccbb4addc 100644
--- a/src/move.c
+++ b/src/move.c
@@ -362,7 +362,7 @@ update_topline()
#endif
)
{
- dollar_vcol = 0;
+ dollar_vcol = -1;
if (curwin->w_skipcol != 0)
{
curwin->w_skipcol = 0;
@@ -966,7 +966,7 @@ curs_columns(may_scroll)
/* remove '$' from change command when cursor moves onto it */
if (startcol > dollar_vcol)
- dollar_vcol = 0;
+ dollar_vcol = -1;
extra = curwin_col_off();
curwin->w_wcol = curwin->w_virtcol + extra;