summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-01-14 15:52:46 +0100
committerBram Moolenaar <Bram@vim.org>2017-01-14 15:52:46 +0100
commite47683a0913f102b6ae08c8848d5aa675d99b188 (patch)
tree7634db978f4f312931be21c3cf0c279b0bd200fc
parent519d7785f4437762c07b2e04217f83a069a8c663 (diff)
downloadvim-git-e47683a0913f102b6ae08c8848d5aa675d99b188.tar.gz
patch 8.0.0182: cursor ilne not update when 'cursorbind' is setv8.0.0182
Problem: When 'cursorbind' and 'cursorline' are set, but 'cursorcolumn' is not, then the cursor line highlighting is not updated. (Hirohito Higashi) Solution: Call redraw_later() with NOT_VALID.
-rw-r--r--src/move.c2
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/move.c b/src/move.c
index 86b19aafc..5968a8b08 100644
--- a/src/move.c
+++ b/src/move.c
@@ -2851,7 +2851,7 @@ do_check_cursorbind(void)
if (has_mbyte)
mb_adjust_cursor();
# endif
- redraw_later(VALID);
+ redraw_later(curwin->w_p_cul ? NOT_VALID : VALID);
/* Only scroll when 'scrollbind' hasn't done this. */
if (!curwin->w_p_scb)
diff --git a/src/version.c b/src/version.c
index 9a30eaedf..806e86511 100644
--- a/src/version.c
+++ b/src/version.c
@@ -765,6 +765,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 182,
+/**/
181,
/**/
180,