if (inc_opt != NULL && strstr((char *)inc_opt, "\\zs") != NULL)
/* Use text from '\zs' to '\ze' (or end) of 'include'. */
new_fname = find_file_name_in_path(incl_regmatch.startp[0],
- (int)(incl_regmatch.endp[0] - incl_regmatch.startp[0]),
+ (int)(incl_regmatch.endp[0] - incl_regmatch.startp[0]),
FNAME_EXP|FNAME_INCL|FNAME_REL, 1L, p_fname);
else
/* Use text after match with 'include'. */
depth_displayed = depth;
}
if (depth >= 0) /* we could read the line */
+ {
files[depth].lnum++;
+ /* Remove any CR and LF from the line. */
+ i = (int)STRLEN(line);
+ if (i > 0 && line[i - 1] == '\n')
+ line[--i] = NUL;
+ if (i > 0 && line[i - 1] == '\r')
+ line[--i] = NUL;
+ }
else if (!already)
{
if (++lnum > end_lnum)
:" > nmake -f Make_dos.mak test17.out
:w! test.out
gf
+:set ff=unix
:w! test.out
:brewind
ENDTEST
:checkpath!
:redir END
:brewind
-:" replace "\" to "/" for Windows
+:" change "\" to "/" for Windows and fix 'fileformat'
:e test.out
:%s#\\#/#g
+:set ff&
:w
:q
ENDTEST