diff options
author | Bram Moolenaar <Bram@vim.org> | 2007-03-08 09:20:28 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2007-03-08 09:20:28 +0000 |
commit | 454ec05a47bf1ddd66f59540535cf10ece45c4f2 (patch) | |
tree | ec8b397a722dd93a49117f8b677e466f1fdb9a99 | |
parent | 38323e4f4a34b64e19579f4ea104561cc620054c (diff) | |
download | vim-git-454ec05a47bf1ddd66f59540535cf10ece45c4f2.tar.gz |
updated for version 7.0-209v7.0.209
-rw-r--r-- | src/if_python.c | 6 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 8 insertions, 0 deletions
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; diff --git a/src/version.c b/src/version.c index 331e75ff5..77f71c87a 100644 --- 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, |