fish-shell/share/functions/__fish_commandline_is_singlequoted.fish
Fabian Homborg 9c413b039d Also fix tokenizer_state in bracketed paste path
Also removes our remaining use of
`__fish_commandline_is_singlequoted`.

See #7782.
2021-04-20 15:29:28 +02:00

5 lines
354 B
Fish

# 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 collect))
end