From 6533ae0719af7a0dee563ed3d74aaf3a565e337a Mon Sep 17 00:00:00 2001
From: Peter Stephenson
Date: Mon, 22 Jul 2013 20:58:57 +0100
Subject: 31559: Fix history line problem with aliases and comments
---
ChangeLog | 3 +++
Src/lex.c | 1 +
2 files changed, 4 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index fba3d5392..cab2fa469 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2013-07-22 Peter Stephenson
+ * 31559: Src/lex.c: Fix problem with history lines for comments
+ that occur in the middle of an alias.
+
* Eric Cook: 31558: Completion/Command/Unix/_qemu: name of
binary has changed.
diff --git a/Src/lex.c b/Src/lex.c
index ac87e5ec8..4a9b11015 100644
--- a/Src/lex.c
+++ b/Src/lex.c
@@ -778,6 +778,7 @@ gettok(void)
bptr = tokstr = (char *)hcalloc(bsiz = 32);
add(c);
}
+ ihwend();
while ((c = ingetc()) != '\n' && !lexstop) {
hwaddc(c);
addtoline(c);
--
cgit 1.4.1