# HG changeset patch # User vimboss # Date 1173345628 0 # Node ID 1d12208efb3732d6f520b05a47283208f12e3856 # Parent 342d2b3a072a6cbc3cff898a663c4889317b32a9 updated for version 7.0-209 diff --git a/src/if_python.c b/src/if_python.c --- 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, PyObjec 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; diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -667,6 +667,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 209, +/**/ 208, /**/ 207,