0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

updated for version 7.0079

This commit is contained in:
Bram Moolenaar
2005-06-04 21:55:20 +00:00
parent 4debb442bd
commit 51485f0624
9 changed files with 1466 additions and 3829 deletions

View File

@@ -1,4 +1,4 @@
*develop.txt* For Vim version 7.0aa. Last change: 2005 Mar 29 *develop.txt* For Vim version 7.0aa. Last change: 2005 Jun 04
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@@ -381,10 +381,10 @@ checking engine in Vim, for various reasons:
fly (while redrawing), just like syntax highlighting. But the mechanisms fly (while redrawing), just like syntax highlighting. But the mechanisms
used by other code are much slower. Myspell uses a simplistic hashtable, used by other code are much slower. Myspell uses a simplistic hashtable,
for example. for example.
- For a program like aspell a communication mechanism would have to be setup. - For using an external program like aspell a communication mechanism would
That's complicated to do in a portable way (Unix-only would be relatively have to be setup. That's complicated to do in a portable way (Unix-only
simple, but that's not good enough). And performance will become a problem would be relatively simple, but that's not good enough). And performance
(lots of process switching involved). will become a problem (lots of process switching involved).
- Missing support for words with non-word characters, such as "Etten-Leur" and - Missing support for words with non-word characters, such as "Etten-Leur" and
"et al.", would require marking the pieces of them OK, lowering the "et al.", would require marking the pieces of them OK, lowering the
reliability. reliability.

View File

@@ -1,4 +1,4 @@
*map.txt* For Vim version 7.0aa. Last change: 2005 Mar 29 *map.txt* For Vim version 7.0aa. Last change: 2005 Jun 03
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1032,6 +1032,7 @@ The valid escape sequences are
If the first two characters of an escape sequence are "q-" (for example, If the first two characters of an escape sequence are "q-" (for example,
<q-args>) then the value is quoted in such a way as to make it a valid value <q-args>) then the value is quoted in such a way as to make it a valid value
for use in an expression. This uses the argument as one single value. for use in an expression. This uses the argument as one single value.
When there is no argument <q-args> is an empty string.
To allow commands to pass their arguments on to a user-defined function, there To allow commands to pass their arguments on to a user-defined function, there
is a special form <f-args> ("function args"). This splits the command is a special form <f-args> ("function args"). This splits the command

Binary file not shown.

View File

@@ -854,11 +854,11 @@ do_bufdel(command, arg, addr_count, start_bnr, end_bnr, forceit)
if (deleted == 0) if (deleted == 0)
{ {
if (command == DOBUF_UNLOAD) if (command == DOBUF_UNLOAD)
sprintf((char *)IObuff, _("E515: No buffers were unloaded")); STRCPY(IObuff, _("E515: No buffers were unloaded"));
else if (command == DOBUF_DEL) else if (command == DOBUF_DEL)
sprintf((char *)IObuff, _("E516: No buffers were deleted")); STRCPY(IObuff, _("E516: No buffers were deleted"));
else else
sprintf((char *)IObuff, _("E517: No buffers were wiped out")); STRCPY(IObuff, _("E517: No buffers were wiped out"));
errormsg = IObuff; errormsg = IObuff;
} }
else if (deleted >= p_report) else if (deleted >= p_report)
@@ -2450,7 +2450,7 @@ buflist_list(eap)
else else
home_replace(buf, buf->b_fname, NameBuff, MAXPATHL, TRUE); 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_fnum,
buf->b_p_bl ? ' ' : 'u', buf->b_p_bl ? ' ' : 'u',
buf == curbuf ? '%' : buf == curbuf ? '%' :
@@ -2459,18 +2459,11 @@ buflist_list(eap)
(buf->b_nwindows == 0 ? 'h' : 'a'), (buf->b_nwindows == 0 ? 'h' : 'a'),
!buf->b_p_ma ? '-' : (buf->b_p_ro ? '=' : ' '), !buf->b_p_ma ? '-' : (buf->b_p_ro ? '=' : ' '),
(buf->b_flags & BF_READERR) ? 'x' (buf->b_flags & BF_READERR) ? 'x'
: (bufIsChanged(buf) ? '+' : ' ') : (bufIsChanged(buf) ? '+' : ' '),
); NameBuff);
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++] = '"';
/* put "line 999" in column 40 or after the file name */ /* put "line 999" in column 40 or after the file name */
IObuff[len] = NUL; len = STRLEN(IObuff);
i = 40 - vim_strsize(IObuff); i = 40 - vim_strsize(IObuff);
do do
{ {

View File

@@ -4342,7 +4342,7 @@ put_escstr(fd, strstart, what)
if (p != NULL) if (p != NULL)
{ {
while (*p != NUL) while (*p != NUL)
if (putc(*p++, fd) < 0) if (fputc(*p++, fd) < 0)
return FAIL; return FAIL;
--str; --str;
continue; continue;

View File

@@ -1445,6 +1445,7 @@ removable(name)
char_u *p; char_u *p;
char_u part[51]; char_u part[51];
int retval = FALSE; int retval = FALSE;
int n;
name = home_replace_save(NULL, name); name = home_replace_save(NULL, name);
if (name != NULL) if (name != NULL)
@@ -1452,13 +1453,16 @@ removable(name)
for (p = p_viminfo; *p; ) for (p = p_viminfo; *p; )
{ {
copy_option_part(&p, part, 51, ", "); copy_option_part(&p, part, 51, ", ");
if (part[0] == 'r' if (part[0] == 'r')
&& MB_STRNICMP(part + 1, name, STRLEN(part + 1)) == 0) {
n = STRLEN(part + 1);
if (MB_STRNICMP(part + 1, name, n) == 0)
{ {
retval = TRUE; retval = TRUE;
break; break;
} }
} }
}
vim_free(name); vim_free(name);
} }
return retval; return retval;

View File

@@ -2823,6 +2823,7 @@ do_mouse(oap, c, dir, count, fixindent)
if ((mod_mask & MOD_MASK_MULTI_CLICK) == MOD_MASK_2CLICK) if ((mod_mask & MOD_MASK_MULTI_CLICK) == MOD_MASK_2CLICK)
{ {
pos_T *pos = NULL; pos_T *pos = NULL;
int gc;
if (is_click) 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 (), * not a word character, try finding a match and select a (),
* {}, [], #if/#endif, etc. block. */ * {}, [], #if/#endif, etc. block. */
end_visual = curwin->w_cursor; end_visual = curwin->w_cursor;
while (vim_iswhite(gchar_pos(&end_visual))) while (gc = gchar_pos(&end_visual), vim_iswhite(gc))
inc(&end_visual); inc(&end_visual);
if (oap != NULL) if (oap != NULL)
oap->motion_type = MCHAR; oap->motion_type = MCHAR;

View File

@@ -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)); 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 *skipwhite __ARGS((char_u *p));
char_u *skipdigits __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 *skiptodigit __ARGS((char_u *p));
char_u *skiptohex __ARGS((char_u *p)); char_u *skiptohex __ARGS((char_u *p));
int vim_isdigit __ARGS((int c)); int vim_isdigit __ARGS((int c));

File diff suppressed because it is too large Load Diff