summaryrefslogtreecommitdiff
path: root/src/misc2.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2009-12-31 12:18:30 +0000
committerBram Moolenaar <Bram@vim.org>2009-12-31 12:18:30 +0000
commit742d1ecd17422afaad75acc016392073c25ef4f6 (patch)
tree918ce7d3a4e400e918ff7f85c13f1560d1bfdb8b /src/misc2.c
parent281daf62aac8b40d1c6cccfb57535c5a1ac1f5db (diff)
downloadvim-git-742d1ecd17422afaad75acc016392073c25ef4f6.tar.gz
updated for version 7.2-324v7.2.324
Diffstat (limited to 'src/misc2.c')
-rw-r--r--src/misc2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/misc2.c b/src/misc2.c
index e157aae9e..949d7e21a 100644
--- a/src/misc2.c
+++ b/src/misc2.c
@@ -528,6 +528,8 @@ check_cursor_col()
#endif
}
}
+ else if (curwin->w_cursor.col < 0)
+ curwin->w_cursor.col = 0;
#ifdef FEAT_VIRTUALEDIT
/* If virtual editing is on, we can leave the cursor on the old position,