summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2018-09-24 18:00:00 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2018-09-30 22:18:46 +0000
commitd756c4d5cbf8137480fb4fe00904700eb9ac5327 (patch)
tree44758bd06ed9e1cb2619fb0794f440dc10d181d6 /Src
parent80ff65dc4260d13924ffe2c68061c0e576e005b4 (diff)
downloadzsh-d756c4d5cbf8137480fb4fe00904700eb9ac5327.tar.gz
zsh-d756c4d5cbf8137480fb4fe00904700eb9ac5327.tar.xz
zsh-d756c4d5cbf8137480fb4fe00904700eb9ac5327.zip
43531: Completion: Fix some false positives in the logic for "are these two candidates completions equivalent".
Diffstat (limited to 'Src')
-rw-r--r--Src/Zle/compcore.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c
index 8eca39447..0a454ad5f 100644
--- a/Src/Zle/compcore.c
+++ b/Src/Zle/compcore.c
@@ -3160,9 +3160,7 @@ matcheq(Cmatch a, Cmatch b)
 	matchstreq(a->ppre, b->ppre) &&
 	matchstreq(a->psuf, b->psuf) &&
 	matchstreq(a->suf, b->suf) &&
-	((!a->disp && !b->disp && matchstreq(a->str, b->str)) ||
-	 (a->disp && b->disp && !strcmp(a->disp, b->disp) &&
-	  matchstreq(a->str, b->str)));
+	  matchstreq(a->str, b->str);
 }
 
 /* Make an array from a linked list. The second argument says whether *