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:
parent
4a934de754
commit
11aaff5614
@ -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
|
||||
|
Reference in New Issue
Block a user