diff src/if_tcl.c @ 14395:c15bef307de6 v8.1.0212

patch 8.1.0212: preferred cursor column not set in interfaces commit https://github.com/vim/vim/commit/53901442f37a59e5495165f91db5574c0b43ab04 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jul 25 22:02:36 2018 +0200 patch 8.1.0212: preferred cursor column not set in interfaces Problem: Preferred cursor column not set in interfaces. Solution: Set w_set_curswant when setting the cursor. (David Hotham, closes #3060)
author Christian Brabandt <cb@256bit.org>
date Wed, 25 Jul 2018 22:15:05 +0200
parents 534836186b15
children 6e4e0d43b20b
line wrap: on
line diff
--- a/src/if_tcl.c
+++ b/src/if_tcl.c
@@ -1091,6 +1091,7 @@ winselfcmd(
 	    /* TODO: should check column */
 	    win->w_cursor.lnum = val1;
 	    win->w_cursor.col = col2vim(val2);
+	    win->w_set_curswant = TRUE;
 	    flags |= FL_UPDATE_SCREEN;
 	    break;