]> granicus.if.org Git - vim/commitdiff
patch 7.4.732 v7.4.732
authorBram Moolenaar <Bram@vim.org>
Tue, 9 Jun 2015 17:23:46 +0000 (19:23 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 9 Jun 2015 17:23:46 +0000 (19:23 +0200)
Problem:    The cursor line is not always updated for the "O" command.
Solution:   Reset the VALID_CROW flag. (Christian Brabandt)

src/normal.c
src/version.c

index c29ab1a48c758df3ef542ee928afa401d0f4a65f..0ec803733c4a72b7b628463be4e7237f6a21a03e 100644 (file)
@@ -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);
        }
     }
index 680e551fb7fa02498edd90774a357674100ba661..d9d6c3ab90ff27f013117a981f00e1f1072bcbb9 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    732,
 /**/
     731,
 /**/