Skip to content

Commit

Permalink
GH-8: do not interfere with self-insert overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
sunaku committed Mar 13, 2012
1 parent 68904e1 commit 0943070
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions zsh-history-substring-search.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -96,18 +96,6 @@ if [[ $+functions[_zsh_highlight] -eq 0 ]]; then
region_highlight=()
}

#
# Remove existing highlights when the user
# inserts printable characters into $BUFFER
#
function ordinary-key-press() {
if [[ $KEYS == [[:print:]] ]]; then
region_highlight=()
fi
zle .self-insert
}
zle -N self-insert ordinary-key-press

#
# The following snippet was taken from the zsh-syntax-highlighting project:
#
Expand Down

0 comments on commit 0943070

Please sign in to comment.