mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 09:39:52 +08:00
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.
This commit is contained in:
parent
4c1173f2ae
commit
e16a1d7065
5
share/functions/__fish_commandline_is_singlequoted.fish
Normal file
5
share/functions/__fish_commandline_is_singlequoted.fish
Normal file
|
@ -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
|
Loading…
Reference in New Issue
Block a user