GH-8: do not interfere with self-insert overrides
This commit is contained in:
parent
68904e1d72
commit
0943070a9d
1 changed files with 0 additions and 12 deletions
|
|
@ -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:
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue