diff src/normal.c @ 6821:cd7a7975f92c v7.4.732

patch 7.4.732 Problem: The cursor line is not always updated for the "O" command. Solution: Reset the VALID_CROW flag. (Christian Brabandt)
author Bram Moolenaar <bram@vim.org>
date Tue, 09 Jun 2015 19:23:46 +0200
parents bc62d1988bf2
children bf3e6012dfbd
line wrap: on
line diff
--- 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);
 	}
     }