mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 06:13:20 +00:00
Revert "Disable bracketed paste for read"
This reverts commit 71dc334010
.
Although this is a partial fix for the problem behaviour, it is too much of a
breaking change for my appetite in a minor release.
This commit is contained in:
parent
71dc334010
commit
38be704434
1 changed files with 3 additions and 7 deletions
|
@ -193,10 +193,8 @@ end" >$__fish_config_dir/config.fish
|
||||||
# the sequences to bind.expect
|
# the sequences to bind.expect
|
||||||
if not set -q FISH_UNIT_TESTS_RUNNING
|
if not set -q FISH_UNIT_TESTS_RUNNING
|
||||||
# Enable bracketed paste before every prompt (see __fish_shared_bindings for the bindings).
|
# Enable bracketed paste before every prompt (see __fish_shared_bindings for the bindings).
|
||||||
# We used to do this for read, but that would break non-interactive use and
|
# Enable bracketed paste when the read builtin is used.
|
||||||
# compound commandlines like `read; cat`, because
|
function __fish_enable_bracketed_paste --on-event fish_prompt --on-event fish_read
|
||||||
# it won't disable it after the read.
|
|
||||||
function __fish_enable_bracketed_paste --on-event fish_prompt
|
|
||||||
printf "\e[?2004h"
|
printf "\e[?2004h"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -207,9 +205,7 @@ end" >$__fish_config_dir/config.fish
|
||||||
|
|
||||||
# Tell the terminal we support BP. Since we are in __f_c_i, the first fish_prompt
|
# Tell the terminal we support BP. Since we are in __f_c_i, the first fish_prompt
|
||||||
# has already fired.
|
# has already fired.
|
||||||
# But only if we're interactive, in case we are in `read`
|
__fish_enable_bracketed_paste
|
||||||
status is-interactive
|
|
||||||
and __fish_enable_bracketed_paste
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# Similarly, enable TMUX's focus reporting when in tmux.
|
# Similarly, enable TMUX's focus reporting when in tmux.
|
||||||
|
|
Loading…
Reference in a new issue