소스 검색

* added a workaround to start highlighting immediately after the creation of a new command line.

pull/57/head
Guido 13 년 전
부모
커밋
56801a6b42
1개의 변경된 파일12개의 추가작업 그리고 0개의 파일을 삭제
  1. +12
    -0
      zsh-syntax-highlighting.zsh

+ 12
- 0
zsh-syntax-highlighting.zsh 파일 보기

@ -172,3 +172,15 @@ unset highlighter highlighter_dir highlighters_dir
# Initialize the array of active highlighters if needed.
[[ $#ZSH_HIGHLIGHT_HIGHLIGHTERS -eq 0 ]] && ZSH_HIGHLIGHT_HIGHLIGHTERS=(main)
# workaround to start highlighting immediately after the creation of a new command line.
if [[ $#functions[zle-line-init] -eq 0 ]]; then
_zsh_highlight_old_zle_line_init_definition=$functions[zle-line-init]
function zle-line-init() {
eval $_zsh_highlight_old_zle_line_init_definition
_zsh_highlight
}
fi
zle -N zle-line-init

불러오는 중...
취소
저장