int console_width = getmaxx(stdscr);
int console_height = getmaxy(stdscr);
- /* First, we find a visible line. */
-
int nb_printed_lines = 0;
use_default_colors();
addstr("\n");
+ /* First, we find a visible line. */
+
if(matcher.regexp_error) {
attron(attr_error);
addnstr("Regexp syntax error", console_width);
if(eol == buffer_size) {
raw_line[buffer_size - 1] = '\0';
- fprintf(stderr, "Line too long:\n");
+ fprintf(stderr, "Line too long (max is %d characters):\n", buffer_size);
fprintf(stderr, raw_line);
fprintf(stderr, "\n");
exit(1);
start = eol + 1;
}
+
+ fclose(file);
}
/*********************************************************************/