summaryrefslogtreecommitdiff
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-03-27 23:02:07 +0200
committerBram Moolenaar <Bram@vim.org>2017-03-27 23:02:07 +0200
commitd5d37537d1fa46fd468bd378af2006dd09840f38 (patch)
treea0319f63b4739528379f52ad116b6aa5f78f6b90 /src/ex_docmd.c
parent980128c369451450743bdb90a67588fa72ec4b07 (diff)
downloadvim-git-d5d37537d1fa46fd468bd378af2006dd09840f38.tar.gz
patch 8.0.0515: ml_get errors in silent Ex modev8.0.0515
Problem: ml_get errors in silent Ex mode. (Dominique Pelle) Solution: Clear valid flags when setting the cursor. Set the topline when not in full screen mode.
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r--src/ex_docmd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 8755f0549..dd5e0a8c4 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -10361,6 +10361,7 @@ ex_normal(exarg_T *eap)
{
curwin->w_cursor.lnum = eap->line1++;
curwin->w_cursor.col = 0;
+ check_cursor_moved(curwin);
}
exec_normal_cmd(