Issue 2: Fix for those using option NO_UNSET (thanks to WayneD)

This commit is contained in:
Julien Nicoulaud 2010-12-25 22:03:27 +01:00
parent 12ffa71c17
commit 5ba105efdb
2 changed files with 3 additions and 1 deletions

View File

@ -21,3 +21,5 @@ Just source the script from your `~/.zshrc`.
* [Jonathan Dahan](http://github.com/jedahan) * [Jonathan Dahan](http://github.com/jedahan)
* James Ahlborn * James Ahlborn
* [Andreas Jaggi](http://github.com/x-way) * [Andreas Jaggi](http://github.com/x-way)
* [Wayne Davison](http://github.com/WayneD)

View File

@ -61,7 +61,7 @@ colorize-zle-buffer() {
esac esac
fi fi
region_highlight+=("$start_pos $end_pos $style") region_highlight+=("$start_pos $end_pos $style")
[[ ${${ZLE_TOKENS_FOLLOWED_BY_COMMANDS[(r)${arg//|/\|}]}:+yes} = 'yes' ]] && colorize=true [[ ${${ZLE_TOKENS_FOLLOWED_BY_COMMANDS[(r)${arg//|/\|}]:-}:+yes} = 'yes' ]] && colorize=true
start_pos=$end_pos start_pos=$end_pos
done done
} }