Skip to content

Commit

Permalink
Meh I like this closer to where it's being declared.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggreer committed Dec 27, 2011
1 parent 11d14cf commit cacba8e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/print.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ void print_file_matches(const char* path, const char* buf, const int buf_len, co
int last_printed_match = 0;
char sep = '-';

if (opts.ackmate) {
sep = ':';
}

if (first_file_match == 0 && opts.print_break) {
printf("\n");
}
Expand All @@ -56,10 +60,6 @@ void print_file_matches(const char* path, const char* buf, const int buf_len, co
context_prev_lines[i] = NULL;
}

if (opts.ackmate) {
sep = ':';
}

for (int i = 0; i < buf_len && (cur_match < matches_len || lines_since_last_match == 0); i++) {
if (i == matches[cur_match].start) {
in_a_match = 1;
Expand Down

0 comments on commit cacba8e

Please sign in to comment.