ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/root-tail/root-tail.c
(Generate patch)

Comparing root-tail/root-tail.c (file contents):
Revision 1.62 by chris_moore, Sun Apr 11 23:49:58 2004 UTC vs.
Revision 1.63 by chris_moore, Thu Apr 15 00:38:13 2004 UTC

1156 continue; 1156 continue;
1157 } 1157 }
1158 1158
1159 /* print filename if any, and if last line was from 1159 /* print filename if any, and if last line was from
1160 * different file */ 1160 * different file */
1161 if (!opt_nofilename && lastprinted != current && current->desc[0]) 1161 if (lastprinted != current)
1162 { 1162 {
1163 current->last = 0; 1163 current->last = 0;
1164 if (!opt_nofilename && current->desc[0])
1165 {
1164 insert_new_line (xstrdup ("["), current); 1166 insert_new_line (xstrdup ("["), current);
1165 append_to_existing_line (xstrdup (current->desc), current); 1167 append_to_existing_line (xstrdup (current->desc), current);
1166 append_to_existing_line (xstrdup ("]"), current); 1168 append_to_existing_line (xstrdup ("]"), current);
1167 } 1169 }
1170 }
1168 1171
1169 /* if we're dealing with partial lines, and the last 1172 /* if we're dealing with partial lines, and the last
1170 * time we showed the line it wasn't finished ... */ 1173 * time we showed the line it wasn't finished ... */
1171 if (!opt_whole && current->lastpartial) 1174 if (!opt_whole && current->lastpartial)
1172 { 1175 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines