forked from aniani/vim
updated for version 7.3.800
Problem: The " mark is not adjusted when inserting lines. (Roland Eggner) Solution: Adjust the line number. (Christian Brabandt)
This commit is contained in:
@@ -1047,6 +1047,7 @@ mark_adjust(line1, line2, amount, amount_after)
|
|||||||
#ifdef FEAT_WINDOWS
|
#ifdef FEAT_WINDOWS
|
||||||
tabpage_T *tab;
|
tabpage_T *tab;
|
||||||
#endif
|
#endif
|
||||||
|
static pos_T initpos = INIT_POS_T(1, 0, 0);
|
||||||
|
|
||||||
if (line2 < line1 && amount_after == 0L) /* nothing to do */
|
if (line2 < line1 && amount_after == 0L) /* nothing to do */
|
||||||
return;
|
return;
|
||||||
@@ -1072,6 +1073,11 @@ mark_adjust(line1, line2, amount, amount_after)
|
|||||||
/* last change position */
|
/* last change position */
|
||||||
one_adjust(&(curbuf->b_last_change.lnum));
|
one_adjust(&(curbuf->b_last_change.lnum));
|
||||||
|
|
||||||
|
/* last cursor position, if it was set */
|
||||||
|
if (!equalpos(curbuf->b_last_cursor, initpos))
|
||||||
|
one_adjust(&(curbuf->b_last_cursor.lnum));
|
||||||
|
|
||||||
|
|
||||||
#ifdef FEAT_JUMPLIST
|
#ifdef FEAT_JUMPLIST
|
||||||
/* list of change positions */
|
/* list of change positions */
|
||||||
for (i = 0; i < curbuf->b_changelistlen; ++i)
|
for (i = 0; i < curbuf->b_changelistlen; ++i)
|
||||||
|
@@ -725,6 +725,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 */
|
||||||
|
/**/
|
||||||
|
800,
|
||||||
/**/
|
/**/
|
||||||
799,
|
799,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user