Skip to content

Commit

Permalink
Revert "Merge pull request #198 from pushqrdx/master"
Browse files Browse the repository at this point in the history
This reverts commit 52bd095, reversing
changes made to 865566c.
  • Loading branch information
psprint committed Aug 11, 2020
1 parent 52bd095 commit a47b508
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions fast-syntax-highlighting.plugin.zsh
Expand Up @@ -144,6 +144,7 @@ _zsh_highlight()

} always {
typeset -g _ZSH_HIGHLIGHT_PRIOR_BUFFER="$BUFFER"
typeset -g _ZSH_HIGHLIGHT_PRIOR_RACTIVE="$REGION_ACTIVE"
typeset -gi _ZSH_HIGHLIGHT_PRIOR_CURSOR=$CURSOR
}
}
Expand Down Expand Up @@ -209,9 +210,6 @@ _zsh_highlight_cursor_moved()
# Setup functions
# -------------------------------------------------------------------------------------------------

autoload -U add-zle-hook-widget
autoload -Uz is-at-least

# Helper for _zsh_highlight_bind_widgets
# $1 is name of widget to call
_zsh_highlight_call_widget()
Expand Down Expand Up @@ -249,16 +247,6 @@ _zsh_highlight_bind_widgets()
# This is needed because we need to disable highlighting in that case.
widgets_to_bind+=(zle-isearch-update)

# Apply syntax highlighting on init. Fixes the issue
# where coming back from push-line loses highlighting
if is-at-least 5.4; then
if [[ -o zle ]]; then
add-zle-hook-widget zle-line-init _zsh_highlight
fi
else
widgets_to_bind+=(zle-line-init)
fi

local cur_widget
for cur_widget in $widgets_to_bind; do
case $widgets[$cur_widget] in
Expand Down

0 comments on commit a47b508

Please sign in to comment.