about summary refs log tree commit diff
path: root/Src/Zle/compresult.c
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-06-16 07:52:05 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-06-16 07:52:05 +0000
commit1416862b6311f67848a35ea5b4cc8ed7d5fb7fbc (patch)
treefc3460af83e7360a11b334ff7ea7d27ea82e17fd /Src/Zle/compresult.c
parentae2b3953df36a9f95e268906b736b407a2739784 (diff)
downloadzsh-1416862b6311f67848a35ea5b4cc8ed7d5fb7fbc.tar.gz
zsh-1416862b6311f67848a35ea5b4cc8ed7d5fb7fbc.tar.xz
zsh-1416862b6311f67848a35ea5b4cc8ed7d5fb7fbc.zip
allow completion after `a{{b,c},'; fix for closing brace re-insertion when completing from both ends (CLF_MID) (11939)
Diffstat (limited to 'Src/Zle/compresult.c')
-rw-r--r--Src/Zle/compresult.c4
1 files changed, 2 insertions, 2 deletions
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) {