about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Src/Zle/compmatch.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 042003f63..049777adb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-04-18  Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
+
+	* 10798: Src/Zle/compmatch.c: join_clines() tested the wrong
+ 	variable
+	
 2000-04-17  Peter Stephenson  <pws@cambridgesiliconradio.com>
 
 	* 10789: Doc/Zsh/expn.yo: better documentation for <(...) and
diff --git a/Src/Zle/compmatch.c b/Src/Zle/compmatch.c
index f0e5a7c47..778f67dff 100644
--- a/Src/Zle/compmatch.c
+++ b/Src/Zle/compmatch.c
@@ -1893,10 +1893,10 @@ join_clines(Cline o, Cline n)
 			    for (tt = o;
 				 (to = tt->next) &&
 				     !cmp_anchors(tn, to, 1); tt = to);
-			    if (tt)
+			    if (to)
 				break;
 			}
-			if (tt) {
+			if (to) {
 			    diff = sub_join(n, o, to, 1);
 
 			    if (po)