0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

updated for version 7.0-070

This commit is contained in:
Bram Moolenaar
2006-08-29 15:30:07 +00:00
parent 4100af7840
commit 89d4032cae
26 changed files with 266 additions and 256 deletions

View File

@@ -4826,15 +4826,20 @@ search_line:
if ((compl_cont_status & CONT_ADDING) && i == compl_length)
{
/* get the next line */
/* IOSIZE > compl_length, so the STRNCPY works */
STRNCPY(IObuff, aux, i);
if (!( depth < 0
&& lnum < end_lnum
&& (line = ml_get(++lnum)) != NULL)
&& !( depth >= 0
&& !vim_fgets(line = file_line,
LSIZE, files[depth].fp)))
/* Get the next line: when "depth" < 0 from the current
* buffer, otherwise from the included file. Jump to
* exit_matched when past the last line. */
if (depth < 0)
{
if (lnum >= end_lnum)
goto exit_matched;
line = ml_get(++lnum);
}
else if (vim_fgets(line = file_line,
LSIZE, files[depth].fp))
goto exit_matched;
/* we read a line, set "already" to check this "line" later