Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

../经过拼音扩展后变成了. #9

Closed
Kzinux opened this issue Apr 19, 2015 · 4 comments
Closed

../经过拼音扩展后变成了. #9

Kzinux opened this issue Apr 19, 2015 · 4 comments

Comments

@Kzinux
Copy link

Kzinux commented Apr 19, 2015

环境:
archlinux
grml-zsh-config 0.11.2-1
zsh 5.0.7-1
zsh-completions 0.12.0-1

问题描述:当前文件夹上一层有一个文件夹‘图片’,当输入命令进入‘图片’文件夹时,'cd ../tp'扩展后变成了'.图片'。

排除zshrc问题,用下面的最小化的zshrc测试过了。
autoload -U compinit
compinit

Zsh pinyin completion

source /usr/share/pinyin-completion/shell/pinyin-comp.zsh

附图:
pycl

@petronny
Copy link
Owner

确认如此。明天尝试修复。

@Kzinux
Copy link
Author

Kzinux commented Apr 19, 2015

好巧。
多谢了。

petronny added a commit that referenced this issue Apr 20, 2015
@petronny
Copy link
Owner

看了一下,原来就直接把./替换成""了。
现在只把"^./"替换成""。
不过中间的./就替换不了了。比如.././tp(虽然那个./有点多余。。)

@Kzinux
Copy link
Author

Kzinux commented Apr 21, 2015

中间的./好怪异。
升级到52.dd59b13-1,确认修复。
谢谢。

petronny added a commit that referenced this issue Apr 21, 2015
Because str.replace() does not recognize regular expressions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants