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
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue