if (buflnum > lnumlast)
break;
p_buf = ml_get_buf(buf, buflnum++, FALSE);
- linelen = (int)STRLEN(p_buf);
- if (linelen > IOSIZE - 2)
+ len = (int)STRLEN(p_buf);
+ if (len > IOSIZE - 2)
{
linebuf = qf_grow_linebuf(&growbuf, &growbufsiz, len,
&linelen);
goto qf_init_end;
}
else
+ {
linebuf = IObuff;
+ linelen = len;
+ }
vim_strncpy(linebuf, p_buf, linelen);
}
}
}
/*
- * push dirbuf onto the directory stack and return pointer to actual dir or
- * NULL on error
+ * Push dirbuf onto the directory stack and return pointer to actual dir or
+ * NULL on error.
*/
static char_u *
qf_push_dir(char_u *dirbuf, struct dir_stack_T **stackptr)
" Test for quickfix directory stack support
function! s:dir_stack_tests(cchar)
+ call s:setup_commands(a:cchar)
+
let save_efm=&efm
set efm=%DEntering\ dir\ '%f',%f:%l:%m,%XLeaving\ dir\ '%f'