mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
updated for version 7.1-290
This commit is contained in:
16
src/spell.c
16
src/spell.c
@@ -2268,6 +2268,8 @@ spell_move_to(wp, dir, allwords, curline, attrp)
|
|||||||
/*
|
/*
|
||||||
* For spell checking: concatenate the start of the following line "line" into
|
* For spell checking: concatenate the start of the following line "line" into
|
||||||
* "buf", blanking-out special characters. Copy less then "maxlen" bytes.
|
* "buf", blanking-out special characters. Copy less then "maxlen" bytes.
|
||||||
|
* Keep the blanks at the start of the next line, this is used in win_line()
|
||||||
|
* to skip those bytes if the word was OK.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
spell_cat_line(buf, line, maxlen)
|
spell_cat_line(buf, line, maxlen)
|
||||||
@@ -2284,12 +2286,14 @@ spell_cat_line(buf, line, maxlen)
|
|||||||
|
|
||||||
if (*p != NUL)
|
if (*p != NUL)
|
||||||
{
|
{
|
||||||
*buf = ' ';
|
/* Only worth concatenating if there is something else than spaces to
|
||||||
vim_strncpy(buf + 1, line, maxlen - 2);
|
* concatenate. */
|
||||||
n = (int)(p - line);
|
n = (int)(p - line) + 1;
|
||||||
if (n >= maxlen)
|
if (n < maxlen - 1)
|
||||||
n = maxlen - 1;
|
{
|
||||||
vim_memset(buf + 1, ' ', n);
|
vim_memset(buf, ' ', n);
|
||||||
|
vim_strncpy(buf + n, p, maxlen - 1 - n);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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 */
|
||||||
|
/**/
|
||||||
|
290,
|
||||||
/**/
|
/**/
|
||||||
289,
|
289,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user