about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorHan Pingtian <hanpt@linux.vnet.ibm.com>2015-09-22 05:55:23 +0800
committerPeter Stephenson <pws@zsh.org>2015-09-22 10:18:41 +0100
commitacf5bd766a7b5d656cdf1c636c8508492c1aadf4 (patch)
tree50a27114c85b651c0ba45420ee2af5634107bb6f /Src
parentd2910fd64f584d57dbf544db8aa36ac909ea212f (diff)
downloadzsh-acf5bd766a7b5d656cdf1c636c8508492c1aadf4.tar.gz
zsh-acf5bd766a7b5d656cdf1c636c8508492c1aadf4.tar.xz
zsh-acf5bd766a7b5d656cdf1c636c8508492c1aadf4.zip
36586: fix completion match right anchor
Diffstat (limited to 'Src')
-rw-r--r--Src/Zle/compmatch.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Src/Zle/compmatch.c b/Src/Zle/compmatch.c
index b5728a5fe..948144006 100644
--- a/Src/Zle/compmatch.c
+++ b/Src/Zle/compmatch.c
@@ -820,10 +820,12 @@ match_str(char *l, char *w, Brinfo *bpp, int bc, int *rwlp,
 			    continue;
 			else if (mp->right)
 			    t = pattern_match(mp->right,
-					      tl + mp->llen - mp->ralen,
+					      //tl + mp->llen - mp->ralen,
+					      tl + mp->llen,
 					      NULL, NULL) &&
 				pattern_match(mp->right,
-					      tw + mp->wlen - mp->ralen,
+					      //tw + mp->wlen - mp->ralen,
+					      tw + mp->wlen,
 					      NULL, NULL) &&
 				(!mp->lalen ||
 				 pattern_match(mp->left, tw + mp->wlen -