summary refs log tree commit diff
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-19 08:33:06 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-19 08:33:06 +0000
commit7672efed2e75e70fd9dbe0c51ef661622f5e5091 (patch)
tree0dcf30386128c018c11c8ef46f4ec95a8dcc7c9c
parentf9e65c2b1f448cd27c597ec727b63bebde2fbdff (diff)
downloadzsh-7672efed2e75e70fd9dbe0c51ef661622f5e5091.tar.gz
zsh-7672efed2e75e70fd9dbe0c51ef661622f5e5091.tar.xz
zsh-7672efed2e75e70fd9dbe0c51ef661622f5e5091.zip
fix for unambiguous string insertion (11466)
-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;