summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2015-06-09 19:23:46 +0200
committerBram Moolenaar <Bram@vim.org>2015-06-09 19:23:46 +0200
commitd0d0fe09cf95bf88f643ec07d07939cbd41f8e63 (patch)
treeb41a7eaa184d206d8ebbdd080cb3cb981fc55621
parent7098ee5c37e35494ed36f3ad2d1c305341a41a45 (diff)
downloadvim-git-d0d0fe09cf95bf88f643ec07d07939cbd41f8e63.tar.gz
patch 7.4.732v7.4.732
Problem: The cursor line is not always updated for the "O" command. Solution: Reset the VALID_CROW flag. (Christian Brabandt)
-rw-r--r--src/normal.c3
-rw-r--r--src/version.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/src/normal.c b/src/normal.c
index c29ab1a48..0ec803733 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -8493,6 +8493,9 @@ n_opencmd(cap)
/* When '#' is in 'cpoptions' ignore the count. */
if (vim_strchr(p_cpo, CPO_HASH) != NULL)
cap->count1 = 1;
+ if (curwin->w_p_cul)
+ /* force redraw of cursorline */
+ curwin->w_valid &= ~VALID_CROW;
invoke_edit(cap, FALSE, cap->cmdchar, TRUE);
}
}
diff --git a/src/version.c b/src/version.c
index 680e551fb..d9d6c3ab9 100644
--- a/src/version.c
+++ b/src/version.c
@@ -742,6 +742,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 732,
+/**/
731,
/**/
730,