forked from aniani/vim
updated for version 7.1-203
This commit is contained in:
@@ -507,11 +507,16 @@ check_cursor_col()
|
|||||||
curwin->w_cursor.col = 0;
|
curwin->w_cursor.col = 0;
|
||||||
else if (curwin->w_cursor.col >= len)
|
else if (curwin->w_cursor.col >= len)
|
||||||
{
|
{
|
||||||
/* Allow cursor past end-of-line in Insert mode, restarting Insert
|
/* Allow cursor past end-of-line when:
|
||||||
* mode or when in Visual mode and 'selection' isn't "old" */
|
* - in Insert mode or restarting Insert mode
|
||||||
|
* - in Visual mode and 'selection' isn't "old"
|
||||||
|
* - 'virtualedit' is set */
|
||||||
if ((State & INSERT) || restart_edit
|
if ((State & INSERT) || restart_edit
|
||||||
#ifdef FEAT_VISUAL
|
#ifdef FEAT_VISUAL
|
||||||
|| (VIsual_active && *p_sel != 'o')
|
|| (VIsual_active && *p_sel != 'o')
|
||||||
|
#endif
|
||||||
|
#ifdef FEAT_VIRTUALEDIT
|
||||||
|
|| (ve_flags & VE_ONEMORE)
|
||||||
#endif
|
#endif
|
||||||
|| virtual_active())
|
|| virtual_active())
|
||||||
curwin->w_cursor.col = len;
|
curwin->w_cursor.col = len;
|
||||||
|
@@ -666,6 +666,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 */
|
||||||
|
/**/
|
||||||
|
203,
|
||||||
/**/
|
/**/
|
||||||
202,
|
202,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user