]> git.eshelyaron.com Git - emacs.git/commitdiff
Another -u fix feature/etags-update
authorTom Tromey <tom@tromey.com>
Tue, 30 Jan 2018 04:43:00 +0000 (21:43 -0700)
committerTom Tromey <tom@tromey.com>
Tue, 30 Jan 2018 04:43:00 +0000 (21:43 -0700)
* lib-src/etags.c (copy_entries_from_old_file): Exit from inner loop
before copying \f to the TAGS file.

lib-src/etags.c

index 6479e2f12fb5f64d86fea300c5e75a0854644b3f..925355f9da0c3cb94c17bd39f3f61238a4748cbc 100644 (file)
@@ -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;
        }
     }