plugin's strange behavior after commands with unicode character #155

Closed
Arondight opened this Issue May 4, 2016 · 2 comments

2 participants

@Arondight
Arondight commented May 4, 2016 edited

This happens after a vim command with unicode character and will triggered by press v.

~/Repo/my/arondight.github.io(branch:source*) » vim source/_posts/为美好的世界献上祝福.md
------------------------------------------------------------
~/Repo/my/arondight.github.io(branch:source*) » _zsh_autosuggest_strategy_default:8: bad pattern: vim source/_posts/为\M-g\M->|好\M-g,#\M-d\M-8>\M-g>$\M-g$\M-.\M-d\M-8)\M-g\M-%\M-g\M-&{.md
v_zsh_autosuggest_strategy_default:8: bad pattern: vim source/_posts/为\M-g\M->|好\M-g,#\M-d\M-8>\M-g>$\M-g$\M-.\M-d\M-8)\M-g\M-%\M-g\M-&{.md
vi_zsh_autosuggest_strategy_default:8: bad pattern: vim source/_posts/为\M-g\M->|好\M-g,#\M-d\M-8>\M-g>$\M-g$\M-.\M-d\M-8)\M-g\M-%\M-g\M-&{.md
vim_zsh_autosuggest_strategy_default:8: bad pattern: vim source/_posts/为\M-g\M->|好\M-g,#\M-d\M-8>\M-g>$\M-g$\M-.\M-d\M-8)\M-g\M-%\M-g\M-&{.md
 _zsh_autosuggest_strategy_default:8: bad pattern: vim source/_posts/为\M-g\M->|好\M-g,#\M-d\M-8>\M-g>$\M-g$\M-.\M-d\M-8)\M-g\M-%\M-g\M-&{.md
_zsh_autosuggest_strategy_default:8: bad pattern: vim source/_posts/为\M-g\M->|好\M-g,#\M-d\M-8>\M-g>$\M-g$\M-.\M-d\M-8)\M-g\M-%\M-g\M-&{.md
vi_zsh_autosuggest_strategy_default:8: bad pattern: vim source/_posts/为\M-g\M->|好\M-g,#\M-d\M-8>\M-g>$\M-g$\M-.\M-d\M-8)\M-g\M-%\M-g\M-&{.md

------------------------------------------------------------
~/Repo/my/arondight.github.io(branch:source*) »

here is infomation of my system

~ » uname -srm
Linux 4.5.1-1-ARCH x86_64
------------------------------------------------------------
~ » echo $ZSH_VERSION
5.2
------------------------------------------------------------
~ » type _zsh_autosuggest_strategy_default
_zsh_autosuggest_strategy_default is a shell function from /home/qinfd/.oh-my-zsh/custom/plugins/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh
------------------------------------------------------------
~ » echo ${plugins[@]}
battery colorize command-not-found common-aliases copydir copyfile dircycle dirhistory dirpersist encode64 gnu-utils history-substring-search jump per-directory-history perl python sudo systemadmin textmate themes torrent urltools wd web-search zsh-navigation-tools zsh_reload example zsh-autosuggestions zsh-completions zsh-syntax-highlighting git github git-prompt git-extras go golang vim-interaction nmap node npm archlinux cp rsync ruby rails systemd tmux iwhois
------------------------------------------------------------
~ » locale
LANG=zh_CN.utf8
LC_CTYPE=zh_CN.utf8
LC_NUMERIC="zh_CN.utf8"
LC_TIME="zh_CN.utf8"
LC_COLLATE="zh_CN.utf8"
LC_MONETARY="zh_CN.utf8"
LC_MESSAGES="zh_CN.utf8"
LC_PAPER="zh_CN.utf8"
LC_NAME="zh_CN.utf8"
LC_ADDRESS="zh_CN.utf8"
LC_TELEPHONE="zh_CN.utf8"
LC_MEASUREMENT="zh_CN.utf8"
LC_IDENTIFICATION="zh_CN.utf8"
LC_ALL=
------------------------------------------------------------
~ »      
@ericfreese ericfreese added the bug label May 12, 2016
@Eriner Eriner referenced this issue in Eriner/zim May 14, 2016
Open

Add zsh-autosuggestions module #35

@ericfreese
zsh-users member
ericfreese commented May 28, 2016 edited

I'm not immediately able to reproduce this (with zsh 5.0.8 or 5.2). Can you reproduce this problem with no other plugins/configuration loaded?

% zsh -f
%% source zsh-autosuggestions.zsh
%% echo 为美好的世界献上祝福
%% e
@ericfreese
zsh-users member

Going to go ahead and close because I can't reproduce with the info given. Will reopen if/when I get more info.

@ericfreese ericfreese closed this Jul 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment