From 117361321fc38ad4534e25b7614e4b72dd3daff5 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 29 Jan 2018 21:43:00 -0700 Subject: [PATCH] Another -u fix * lib-src/etags.c (copy_entries_from_old_file): Exit from inner loop before copying \f to the TAGS file. --- lib-src/etags.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib-src/etags.c b/lib-src/etags.c index 6479e2f12fb..925355f9da0 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c @@ -1707,14 +1707,14 @@ copy_entries_from_old_file (FILE *old_file, const char *old_filename, FILE *out_ break; } + if (line.len < 0 || strneq (line.buffer, "\f", 1)) + break; + if (should_copy) { fwrite (line.buffer, line.len, 1, out_file); fputs ("\n", out_file); } - - if (line.len < 0 || strneq (line.buffer, "\f", 1)) - break; } } -- 2.39.5