0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

updated for version 7.0165

This commit is contained in:
Bram Moolenaar 2005-12-08 22:02:51 +00:00
parent 77197e44d6
commit 18f9a79673
2 changed files with 16 additions and 13 deletions

View File

@ -6530,22 +6530,25 @@ compile_cap_prog(buf)
buf_T *buf;
{
regprog_T *rp = buf->b_cap_prog;
char_u *re;
if (*buf->b_p_spc == NUL)
{
buf->b_cap_prog = NULL;
vim_free(rp);
return NULL;
}
else
{
/* Prepend a ^ so that we only match at one column */
vim_snprintf((char *)IObuff, IOSIZE, "^%s", buf->b_p_spc);
buf->b_cap_prog = vim_regcomp(IObuff, RE_MAGIC);
re = concat_str((char_u *)"^", buf->b_p_spc);
if (re != NULL)
{
buf->b_cap_prog = vim_regcomp(re, RE_MAGIC);
if (buf->b_cap_prog == NULL)
{
buf->b_cap_prog = rp;
buf->b_cap_prog = rp; /* restore the previous program */
return e_invarg;
}
vim_free(re);
}
}
vim_free(rp);
return NULL;

View File

@ -36,5 +36,5 @@
#define VIM_VERSION_NODOT "vim70aa"
#define VIM_VERSION_SHORT "7.0aa"
#define VIM_VERSION_MEDIUM "7.0aa ALPHA"
#define VIM_VERSION_LONG "VIM - Vi IMproved 7.0aa ALPHA (2005 Dec 7)"
#define VIM_VERSION_LONG_DATE "VIM - Vi IMproved 7.0aa ALPHA (2005 Dec 7, compiled "
#define VIM_VERSION_LONG "VIM - Vi IMproved 7.0aa ALPHA (2005 Dec 8)"
#define VIM_VERSION_LONG_DATE "VIM - Vi IMproved 7.0aa ALPHA (2005 Dec 8, compiled "