From d0d0fe09cf95bf88f643ec07d07939cbd41f8e63 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 9 Jun 2015 19:23:46 +0200 Subject: [PATCH] patch 7.4.732 Problem: The cursor line is not always updated for the "O" command. Solution: Reset the VALID_CROW flag. (Christian Brabandt) --- src/normal.c | 3 +++ src/version.c | 2 ++ 2 files changed, 5 insertions(+) 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 @@ -741,6 +741,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 732, /**/ 731, /**/ -- 2.40.0