From 53901442f37a59e5495165f91db5574c0b43ab04 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 25 Jul 2018 22:02:36 +0200 Subject: 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) --- src/if_py_both.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/if_py_both.h') diff --git a/src/if_py_both.h b/src/if_py_both.h index 58db254dcc..459bc50cdd 100644 --- a/src/if_py_both.h +++ b/src/if_py_both.h @@ -3985,6 +3985,7 @@ WindowSetattr(WindowObject *self, char *name, PyObject *valObject) self->win->w_cursor.lnum = lnum; self->win->w_cursor.col = col; + self->win->w_set_curswant = TRUE; #ifdef FEAT_VIRTUALEDIT self->win->w_cursor.coladd = 0; #endif -- cgit v1.2.3