Compare commits

...

1 Commits

Author SHA1 Message Date
Bram Moolenaar
0300e465aa updated for version 7.4.025
Problem:    Reading before start of a string.
Solution:   Do not call mb_ptr_back() at start of a string. (Dominique Pelle)
2013-09-08 16:03:45 +02:00
2 changed files with 7 additions and 3 deletions

View File

@@ -5187,11 +5187,13 @@ ins_complete(c)
/* Go back to just before the first filename character. */
mb_ptr_back(line, p);
while (vim_isfilec(PTR2CHAR(p)) && p >= line)
while (p > line && vim_isfilec(PTR2CHAR(p)))
mb_ptr_back(line, p);
startcol = (int)(p - line);
startcol = (int)(p - line) + 1;
if (p == line && vim_isfilec(PTR2CHAR(p)))
startcol = 0;
compl_col += ++startcol;
compl_col += startcol;
compl_length = (int)curs_col - startcol;
compl_pattern = addstar(line + compl_col, compl_length,
EXPAND_FILES);

View File

@@ -738,6 +738,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
25,
/**/
24,
/**/