do_check_cursorbind()
{
linenr_T line = curwin->w_cursor.lnum;
- colnr_T col = curwin->w_cursor.col;
+ colnr_T col = curwin->w_cursor.col;
+# ifdef FEAT_VIRTUALEDIT
+ colnr_T coladd = curwin->w_cursor.coladd;
+# endif
win_T *old_curwin = curwin;
buf_T *old_curbuf = curbuf;
int restart_edit_save;
# endif
curwin->w_cursor.lnum = line;
curwin->w_cursor.col = col;
+# ifdef FEAT_VIRTUALEDIT
+ curwin->w_cursor.coladd = coladd;
+# endif
/* Make sure the cursor is in a valid position. Temporarily set
* "restart_edit" to allow the cursor to be beyond the EOL. */