[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #51376] Bug in the request "itc"; makes request "it" behave the sam
From: |
Bjarni Ingi Gislason |
Subject: |
[bug #51376] Bug in the request "itc"; makes request "it" behave the same way |
Date: |
Fri, 14 Jul 2017 13:35:30 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 |
Follow-up Comment #1, bug #51376 (project groff):
The following patch eliminated the symptoms from the test case:
>From dd44550852361e8e35e6cb49e416956253eb39a7 Mon Sep 17 00:00:00 2001
From: Bjarni Ingi Gislason <address@hidden>
Date: Fri, 14 Jul 2017 13:34:57 +0000
Subject: [PATCH] env.cpp: Restore input_trap state to normal when '.it' is
called
Otherwise the request '.itc' lets all later uses of '.it' behave the same
way as itself.
Signed-off-by: Bjarni Ingi Gislason <address@hidden>
---
src/roff/troff/env.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/roff/troff/env.cpp b/src/roff/troff/env.cpp
index 2c82c568..f242d4ee 100644
--- a/src/roff/troff/env.cpp
+++ b/src/roff/troff/env.cpp
@@ -2508,6 +2508,8 @@ void do_input_trap(int continued)
curenv->input_trap_count = 0;
if (continued)
curenv->continued_input_trap = 1;
+ else
+ curenv->continued_input_trap = 0;
int n;
if (has_arg() && get_integer(&n)) {
if (n <= 0)
--
2.13.2
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51376>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/