Mercurial > vim
changeset 1083:1d12208efb37 v7.0.209
updated for version 7.0-209
author | vimboss |
---|---|
date | Thu, 08 Mar 2007 09:20:28 +0000 |
parents | 342d2b3a072a |
children | bf63a31b7701 |
files | src/if_python.c src/version.c |
diffstat | 2 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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;