mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
updated for version 7.2-268
This commit is contained in:
parent
8701cd6a22
commit
badfde1bfe
@ -2058,6 +2058,7 @@ WindowSetattr(PyObject *self, char *name, PyObject *val)
|
|||||||
{
|
{
|
||||||
long lnum;
|
long lnum;
|
||||||
long col;
|
long col;
|
||||||
|
long len;
|
||||||
|
|
||||||
if (!PyArg_Parse(val, "(ll)", &lnum, &col))
|
if (!PyArg_Parse(val, "(ll)", &lnum, &col))
|
||||||
return -1;
|
return -1;
|
||||||
@ -2072,10 +2073,16 @@ WindowSetattr(PyObject *self, char *name, PyObject *val)
|
|||||||
if (VimErrorCheck())
|
if (VimErrorCheck())
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
/* NO CHECK ON COLUMN - SEEMS NOT TO MATTER */
|
/* When column is out of range silently correct it. */
|
||||||
|
len = STRLEN(ml_get_buf(this->win->w_buffer, lnum, FALSE));
|
||||||
|
if (col > len)
|
||||||
|
col = len;
|
||||||
|
|
||||||
this->win->w_cursor.lnum = lnum;
|
this->win->w_cursor.lnum = lnum;
|
||||||
this->win->w_cursor.col = col;
|
this->win->w_cursor.col = col;
|
||||||
|
#ifdef FEAT_VIRTUALEDIT
|
||||||
|
this->win->w_cursor.coladd = 0;
|
||||||
|
#endif
|
||||||
update_screen(VALID);
|
update_screen(VALID);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -676,6 +676,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
268,
|
||||||
/**/
|
/**/
|
||||||
267,
|
267,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user