emacs-diffs
[Top][All Lists]
Advanced

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

feature/etags_update_v2 fbe52da 7/8: Another -u fix


From: Dmitry Gutov
Subject: feature/etags_update_v2 fbe52da 7/8: Another -u fix
Date: Tue, 8 Dec 2020 16:48:02 -0500 (EST)

branch: feature/etags_update_v2
commit fbe52dad5db5844523b5fd549a4a7c5d36a37f3d
Author: Tom Tromey <tom@tromey.com>
Commit: Dmitry Gutov <dgutov@yandex.ru>

    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 1fa0447..4fd0d63 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -1721,14 +1721,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]