From 1416862b6311f67848a35ea5b4cc8ed7d5fb7fbc Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Fri, 16 Jun 2000 07:52:05 +0000 Subject: allow completion after `a{{b,c},'; fix for closing brace re-insertion when completing from both ends (CLF_MID) (11939) --- Src/Zle/compresult.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Src/Zle/compresult.c') diff --git a/Src/Zle/compresult.c b/Src/Zle/compresult.c index 7e2e564f1..092971479 100644 --- a/Src/Zle/compresult.c +++ b/Src/Zle/compresult.c @@ -406,8 +406,8 @@ cline_str(Cline l, int ins, int *csp) * with missing characters, we take this, otherwise if we have a * prefix with missing characters, we take that, the same for a * suffix, and finally a place where the matches differ. */ - ncs = (cbr >= 0 ? cbr : - (mid >= 0 ? mid : + ncs = (mid >= 0 ? mid : + (cbr >= 0 ? cbr : (pm >= 0 ? pm : (sm >= 0 ? sm : (d >= 0 ? d : cs))))); if (!ins) { -- cgit 1.4.1