mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
updated for version 7.3.502
Problem: Netbeans insert halfway a line actually appends to the line. Solution: Insert halfway the line. (Brian Victor)
This commit is contained in:
@@ -1812,14 +1812,15 @@ nb_do_cmd(
|
|||||||
char_u *oldline = ml_get(lnum);
|
char_u *oldline = ml_get(lnum);
|
||||||
char_u *newline;
|
char_u *newline;
|
||||||
|
|
||||||
/* Insert halfway a line. For simplicity we assume we
|
/* Insert halfway a line. */
|
||||||
* need to append to the line. */
|
|
||||||
newline = alloc_check(
|
newline = alloc_check(
|
||||||
(unsigned)(STRLEN(oldline) + len + 1));
|
(unsigned)(STRLEN(oldline) + len + 1));
|
||||||
if (newline != NULL)
|
if (newline != NULL)
|
||||||
{
|
{
|
||||||
STRCPY(newline, oldline);
|
mch_memmove(newline, oldline, (size_t)pos->col);
|
||||||
|
newline[pos->col] = NUL;
|
||||||
STRCAT(newline, args);
|
STRCAT(newline, args);
|
||||||
|
STRCAT(newline, oldline + pos->col);
|
||||||
ml_replace(lnum, newline, FALSE);
|
ml_replace(lnum, newline, FALSE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -714,6 +714,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 */
|
||||||
|
/**/
|
||||||
|
502,
|
||||||
/**/
|
/**/
|
||||||
501,
|
501,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user