mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Also fix tokenizer_state in bracketed paste path
Also removes our remaining use of `__fish_commandline_is_singlequoted`. See #7782.
This commit is contained in:
parent
dc57ba01a2
commit
9c413b039d
2 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
# TODO: This function is deprecated. It was used in fish_clipboard_paste
|
||||
# which some users copied, so maybe leave it around for a few years.
|
||||
function __fish_commandline_is_singlequoted --description "Return 0 if the current token has an open single-quote"
|
||||
string match -q 'single*' (__fish_tokenizer_state -- (commandline -ct))
|
||||
string match -q 'single*' (__fish_tokenizer_state -- (commandline -ct | string collect))
|
||||
end
|
||||
|
|
|
@ -182,7 +182,7 @@ function __fish_start_bracketed_paste
|
|||
set -g __fish_last_bind_mode $fish_bind_mode
|
||||
# If the token is currently single-quoted,
|
||||
# we escape single-quotes (and backslashes).
|
||||
__fish_commandline_is_singlequoted
|
||||
string match -q 'single*' (__fish_tokenizer_state -- (commandline -ct | string collect))
|
||||
and set -g __fish_paste_quoted 1
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue