From 454ec05a47bf1ddd66f59540535cf10ece45c4f2 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 8 Mar 2007 09:20:28 +0000 Subject: updated for version 7.0-209 --- src/if_python.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/if_python.c') diff --git a/src/if_python.c b/src/if_python.c index adcb52d2b..0e06d36e4 100644 --- a/src/if_python.c +++ b/src/if_python.c @@ -2410,6 +2410,8 @@ py_fix_cursor(int lo, int hi, int extra) curwin->w_cursor.lnum = lo; check_cursor(); } + else + check_cursor_col(); changed_cline_bef_curs(); } invalidate_botline(); @@ -2487,6 +2489,10 @@ SetBufferLine(buf_T *buf, int n, PyObject *line, int *len_change) curbuf = savebuf; + /* Check that the cursor is not beyond the end of the line now. */ + if (buf == curwin->w_buffer) + check_cursor_col(); + if (PyErr_Occurred() || VimErrorCheck()) return FAIL; -- cgit v1.2.3