diff options
author | Bram Moolenaar <bram@vim.org> | 2015-06-09 19:23:46 +0200 |
---|---|---|
committer | Bram Moolenaar <bram@vim.org> | 2015-06-09 19:23:46 +0200 |
commit | 51ca081be7d7399af896922ec7360e2092e1f207 (patch) | |
tree | efd0ca8225407c1189cde8dae8baecae2aa4faf1 | |
parent | e0041a13a2d0e3b4a1d5e950235321c512f472a0 (diff) | |
download | vim-51ca081be7d7399af896922ec7360e2092e1f207.tar.gz |
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.c | 3 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/normal.c b/src/normal.c index c29ab1a4..0ec80373 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 680e551f..d9d6c3ab 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, |