Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion zsh-syntax-highlighting-filetypes.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ _zsh_highlight-zle-buffer-p() {
local region_highlight_size="$1" highlight_predicate="$2"
# If any highlightings are not taken into account, asume it is needed.
# This holds for some up/down-history commands, for example.
((region_highlight_size == 0)) || "$highlight_predicate"
((region_highlight_size == 0)) || [[ -n "$highlight_predicate" ]] && "$highlight_predicate"
}

# Whether the command line buffer is modified or not.
Expand Down