diff options
author | Han Pingtian <hanpt@linux.vnet.ibm.com> | 2015-09-22 05:55:23 +0800 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2015-09-22 10:18:41 +0100 |
commit | acf5bd766a7b5d656cdf1c636c8508492c1aadf4 (patch) | |
tree | 50a27114c85b651c0ba45420ee2af5634107bb6f /Src/Zle/compmatch.c | |
parent | d2910fd64f584d57dbf544db8aa36ac909ea212f (diff) | |
download | zsh-acf5bd766a7b5d656cdf1c636c8508492c1aadf4.tar.gz zsh-acf5bd766a7b5d656cdf1c636c8508492c1aadf4.tar.xz zsh-acf5bd766a7b5d656cdf1c636c8508492c1aadf4.zip |
36586: fix completion match right anchor
Diffstat (limited to 'Src/Zle/compmatch.c')
-rw-r--r-- | Src/Zle/compmatch.c | 6 |
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 - |