mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-11 22:02:31 +01:00
Merge fb418b90d3 into bc7f8ea433
This commit is contained in:
commit
e3c151eb4b
3 changed files with 15 additions and 8 deletions
|
|
@ -190,6 +190,14 @@ _zsh_highlight_cursor_moved()
|
|||
[[ -n $CURSOR ]] && [[ -n ${_ZSH_HIGHLIGHT_PRIOR_CURSOR-} ]] && (($_ZSH_HIGHLIGHT_PRIOR_CURSOR != $CURSOR))
|
||||
}
|
||||
|
||||
# Whether the current widget is an accept-line type widget.
|
||||
#
|
||||
# Returns 0 if the the current widget is an accept-line type widget.
|
||||
_zsh_highlight_is_accept_line_type_widget()
|
||||
{
|
||||
[[ $WIDGET == accept-* ]] || [[ $WIDGET == zsh-isearch-exit ]]
|
||||
}
|
||||
|
||||
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# Setup functions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue