emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] feature/etags-update 1173613: Another -u fix


From: Tom Tromey
Subject: [Emacs-diffs] feature/etags-update 1173613: Another -u fix
Date: Mon, 29 Jan 2018 23:43:48 -0500 (EST)

branch: feature/etags-update
commit 117361321fc38ad4534e25b7614e4b72dd3daff5
Author: Tom Tromey <address@hidden>
Commit: Tom Tromey <address@hidden>

    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 6479e2f..925355f 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;
        }
     }
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]