diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-09-11 14:39:53 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-09-11 14:39:53 +0200 |
commit | 4930a76a0357f76a829eafe4985d04cf3ce0e9e0 (patch) | |
tree | 30ecbe75f00cf90c2cb01cb7d7aebe21bdebdde4 /src/ex_docmd.c | |
parent | ee39ef0b93d31763d05e54ba99801e3f1a254c0d (diff) |
patch 7.4.2362v7.4.2362
Problem: Illegal memory access with ":1@". (Dominique Pelle)
Solution: Correct cursor column after setting the line number. Also avoid
calling end_visual_mode() when not in Visual mode.
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index dc0a71e682..eef559506d 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -9388,6 +9388,7 @@ ex_at(exarg_T *eap) int prev_len = typebuf.tb_len; curwin->w_cursor.lnum = eap->line2; + check_cursor_col(); #ifdef USE_ON_FLY_SCROLL dont_scroll = TRUE; /* disallow scrolling here */ |