1
0
Fork 0
mirror of synced 2024-11-26 09:15:34 -05:00

Compare version as float

ZSH_VERSION isn't guarenteed to be a float (5.1.1). In this case, it
should be safe to just strip it to a float: 5.1(.1)

closes issue #3
This commit is contained in:
Matt Hamilton 2015-12-27 03:44:32 -05:00
parent 4a934de754
commit 11aaff5614

View file

@ -3,7 +3,7 @@
#
# use smart URL pasting and escaping
if [[ ${ZSH_VERSION} -ge 5.1 ]]; then
if [[ ${ZSH_VERSION%.*} -ge 5.1 ]]; then
autoload -Uz bracketed-paste-magic
zle -N bracketed-paste bracketed-paste-magic
fi