diff src/ex_docmd.c @ 10184:4669440016f2 v7.4.2362

commit https://github.com/vim/vim/commit/4930a76a0357f76a829eafe4985d04cf3ce0e9e0 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Sep 11 14:39:53 2016 +0200 patch 7.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.
author Christian Brabandt <cb@256bit.org>
date Sun, 11 Sep 2016 14:45:05 +0200
parents 58e6dd1d8be3
children 175b1116f96a
line wrap: on
line diff
--- 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 */