robbyrussell/oh-my-zsh — Issue #755: history-substring-search-begin problem with up arrow
Author: knl
Created: 2011-12-18 18:56:25+00:00
State: open

Hi,

in my setup, I'm experiencing these messages, when I press up arrow:

history-substring-search-begin:30: bad pattern: _history_substring_search_matches=(1

However, if I comment out lines [166](https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/history-substring-search/history-substring-search.zsh#L166) and [167](https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/history-substring-search/history-substring-search.zsh#L167) in `plugins/history-substring-search/history-substring-search.zsh`, everything works fine.

I have this in my config file:

if [[ -o interactive ]]; then
bindkey -e

autoload -U down-line-or-beginning-search
autoload -U up-line-or-beginning-search
zle -N down-line-or-beginning-search
zle -N up-line-or-beginning-search

bindkey '\e[1;5D' backward-word
bindkey '\e[1;5C' forward-word
bindkey '\e[3~' delete-char
bindkey '^P' up-line-or-beginning-search
bindkey '^N' down-line-or-beginning-search
fi

I'm running the latest version of oh-my-zsh.