forked from aniani/vim
updated for version 7.0079
This commit is contained in:
21
src/buffer.c
21
src/buffer.c
@@ -854,11 +854,11 @@ do_bufdel(command, arg, addr_count, start_bnr, end_bnr, forceit)
|
||||
if (deleted == 0)
|
||||
{
|
||||
if (command == DOBUF_UNLOAD)
|
||||
sprintf((char *)IObuff, _("E515: No buffers were unloaded"));
|
||||
STRCPY(IObuff, _("E515: No buffers were unloaded"));
|
||||
else if (command == DOBUF_DEL)
|
||||
sprintf((char *)IObuff, _("E516: No buffers were deleted"));
|
||||
STRCPY(IObuff, _("E516: No buffers were deleted"));
|
||||
else
|
||||
sprintf((char *)IObuff, _("E517: No buffers were wiped out"));
|
||||
STRCPY(IObuff, _("E517: No buffers were wiped out"));
|
||||
errormsg = IObuff;
|
||||
}
|
||||
else if (deleted >= p_report)
|
||||
@@ -2450,7 +2450,7 @@ buflist_list(eap)
|
||||
else
|
||||
home_replace(buf, buf->b_fname, NameBuff, MAXPATHL, TRUE);
|
||||
|
||||
sprintf((char *)IObuff, "%3d%c%c%c%c%c \"",
|
||||
vim_snprintf((char *)IObuff, IOSIZE - 20, "%3d%c%c%c%c%c \"%s\"",
|
||||
buf->b_fnum,
|
||||
buf->b_p_bl ? ' ' : 'u',
|
||||
buf == curbuf ? '%' :
|
||||
@@ -2459,18 +2459,11 @@ buflist_list(eap)
|
||||
(buf->b_nwindows == 0 ? 'h' : 'a'),
|
||||
!buf->b_p_ma ? '-' : (buf->b_p_ro ? '=' : ' '),
|
||||
(buf->b_flags & BF_READERR) ? 'x'
|
||||
: (bufIsChanged(buf) ? '+' : ' ')
|
||||
);
|
||||
|
||||
len = (int)STRLEN(IObuff);
|
||||
STRNCPY(IObuff + len, NameBuff, IOSIZE - 20 - len);
|
||||
IObuff[IOSIZE - 20 - len] = NUL; /* make sure it's terminated */
|
||||
|
||||
len = (int)STRLEN(IObuff);
|
||||
IObuff[len++] = '"';
|
||||
: (bufIsChanged(buf) ? '+' : ' '),
|
||||
NameBuff);
|
||||
|
||||
/* put "line 999" in column 40 or after the file name */
|
||||
IObuff[len] = NUL;
|
||||
len = STRLEN(IObuff);
|
||||
i = 40 - vim_strsize(IObuff);
|
||||
do
|
||||
{
|
||||
|
||||
@@ -4342,7 +4342,7 @@ put_escstr(fd, strstart, what)
|
||||
if (p != NULL)
|
||||
{
|
||||
while (*p != NUL)
|
||||
if (putc(*p++, fd) < 0)
|
||||
if (fputc(*p++, fd) < 0)
|
||||
return FAIL;
|
||||
--str;
|
||||
continue;
|
||||
|
||||
12
src/mark.c
12
src/mark.c
@@ -1445,6 +1445,7 @@ removable(name)
|
||||
char_u *p;
|
||||
char_u part[51];
|
||||
int retval = FALSE;
|
||||
int n;
|
||||
|
||||
name = home_replace_save(NULL, name);
|
||||
if (name != NULL)
|
||||
@@ -1452,11 +1453,14 @@ removable(name)
|
||||
for (p = p_viminfo; *p; )
|
||||
{
|
||||
copy_option_part(&p, part, 51, ", ");
|
||||
if (part[0] == 'r'
|
||||
&& MB_STRNICMP(part + 1, name, STRLEN(part + 1)) == 0)
|
||||
if (part[0] == 'r')
|
||||
{
|
||||
retval = TRUE;
|
||||
break;
|
||||
n = STRLEN(part + 1);
|
||||
if (MB_STRNICMP(part + 1, name, n) == 0)
|
||||
{
|
||||
retval = TRUE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
vim_free(name);
|
||||
|
||||
@@ -2823,6 +2823,7 @@ do_mouse(oap, c, dir, count, fixindent)
|
||||
if ((mod_mask & MOD_MASK_MULTI_CLICK) == MOD_MASK_2CLICK)
|
||||
{
|
||||
pos_T *pos = NULL;
|
||||
int gc;
|
||||
|
||||
if (is_click)
|
||||
{
|
||||
@@ -2830,7 +2831,7 @@ do_mouse(oap, c, dir, count, fixindent)
|
||||
* not a word character, try finding a match and select a (),
|
||||
* {}, [], #if/#endif, etc. block. */
|
||||
end_visual = curwin->w_cursor;
|
||||
while (vim_iswhite(gchar_pos(&end_visual)))
|
||||
while (gc = gchar_pos(&end_visual), vim_iswhite(gc))
|
||||
inc(&end_visual);
|
||||
if (oap != NULL)
|
||||
oap->motion_type = MCHAR;
|
||||
|
||||
@@ -40,6 +40,7 @@ void getvvcol __ARGS((win_T *wp, pos_T *pos, colnr_T *start, colnr_T *cursor, co
|
||||
void getvcols __ARGS((win_T *wp, pos_T *pos1, pos_T *pos2, colnr_T *left, colnr_T *right));
|
||||
char_u *skipwhite __ARGS((char_u *p));
|
||||
char_u *skipdigits __ARGS((char_u *p));
|
||||
char_u *skiphex __ARGS((char_u *p));
|
||||
char_u *skiptodigit __ARGS((char_u *p));
|
||||
char_u *skiptohex __ARGS((char_u *p));
|
||||
int vim_isdigit __ARGS((int c));
|
||||
|
||||
5243
src/spell.c
5243
src/spell.c
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user