about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--Src/Zle/compresult.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 098a120a3..11de2d23d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,10 +1,12 @@
 2000-05-19  Sven Wischnowsky  <wischnow@zsh.org>
 
+	* 11466: Src/Zle/compresult.c: fix for unambiguous string insertion
+	
 	* 11464: Completion/Base/_arguments, Completion/Core/_approximate,
  	Completion/Core/_files, Completion/Core/_multi_parts,
  	Completion/Core/_sep_parts, Completion/Debian/_apt,
  	Completion/User/_enscript, Completion/User/_finger,
- 	Completion/User/_urls, Completion/X/_xutils:don't use $match for
+ 	Completion/User/_urls, Completion/X/_xutils: don't use $match for
  	something different than (#b)ackrefs
 	
 2000-05-18  Sven Wischnowsky  <wischnow@zsh.org>
diff --git a/Src/Zle/compresult.c b/Src/Zle/compresult.c
index 5537f88ce..531017afb 100644
--- a/Src/Zle/compresult.c
+++ b/Src/Zle/compresult.c
@@ -105,7 +105,7 @@ cut_cline(Cline l)
 		ls = 1;
 
 		for (p = e; p; p = p->next)
-		    len += p->max;
+		    len += p->min;
 
 		if (len > ((minmlen << 1) / 3))
 		    goto end;