mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 15:08:01 +00:00
environment: only enable bracketed paste on non-dumb terminals
Fixes #1552
This commit is contained in:
parent
e9387a177e
commit
6c46804f41
@ -14,7 +14,7 @@
|
|||||||
# paste had a regression. Additionally, 5.2 added bracketed-paste-url-magic
|
# paste had a regression. Additionally, 5.2 added bracketed-paste-url-magic
|
||||||
# which is generally better than url-quote-magic so we load that when possible.
|
# which is generally better than url-quote-magic so we load that when possible.
|
||||||
autoload -Uz is-at-least
|
autoload -Uz is-at-least
|
||||||
if [[ ${ZSH_VERSION} != 5.1.1 ]]; then
|
if [[ ${ZSH_VERSION} != 5.1.1 && ${TERM} != "dumb" ]]; then
|
||||||
if is-at-least 5.2; then
|
if is-at-least 5.2; then
|
||||||
autoload -Uz bracketed-paste-url-magic
|
autoload -Uz bracketed-paste-url-magic
|
||||||
zle -N bracketed-paste bracketed-paste-url-magic
|
zle -N bracketed-paste bracketed-paste-url-magic
|
||||||
|
Loading…
Reference in New Issue
Block a user