From e16a1d7065b87943ab3b631fbcf46c2d9d452ee7 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Sat, 13 Feb 2021 08:50:59 +0100 Subject: [PATCH] Add deprecated compatibility wrapper for __fish_commandline_is_singlequoted It could be really annoying if Ctrl-V stopped working when switching between fish versions, for example when using different machines. --- share/functions/__fish_commandline_is_singlequoted.fish | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 share/functions/__fish_commandline_is_singlequoted.fish diff --git a/share/functions/__fish_commandline_is_singlequoted.fish b/share/functions/__fish_commandline_is_singlequoted.fish new file mode 100644 index 000000000..7a3a81a29 --- /dev/null +++ b/share/functions/__fish_commandline_is_singlequoted.fish @@ -0,0 +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)) +end