emacs-diffs
[Top][All Lists]
Advanced

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

master 1945564: Really fix the etags TEX parsing


From: Lars Ingebrigtsen
Subject: master 1945564: Really fix the etags TEX parsing
Date: Sun, 12 Dec 2021 05:45:19 -0500 (EST)

branch: master
commit 194556425f140b8599467959b73d5954a59128e3
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Really fix the etags TEX parsing
    
    * lib-src/etags.c (TEX_decode_env): Re-fix off-by-one parsing of
    TEXTAGS environment variable (bug#52438).
---
 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 af142b0..71f3464 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -5782,9 +5782,9 @@ TEX_decode_env (const char *evarname, const char *defenv)
   else
     env = concat (env, defenv, "");
 
-  /* If the environment variable starts with a colon, increase the
-     length of the token table.  */
-  if (*env == ':')
+  /* If the environment variable doesn't start with a colon, increase
+     the length of the token table.  */
+  if (*env != ':')
     len++;
 
   /* Allocate a token table */



reply via email to

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