mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-31 20:31:19 -03:00
Stop attempting to complete inside comments
Inside a comment we offer plain file completions (or command completions if
the comment is in command position). However these completions are broken
because they don't consider any of the surrounding characters. For example
with a command line
echo # comment
^ cursor
we suggest file completions and insert them as
echo # comsomefile ment
Providing completions inside comments does not seem useful and it can be
misleading. Let's remove the completions; this should communicate better that
we are in a free-form comment that's not subject to fish syntax.
Closes #9320
This commit is contained in:
@@ -399,6 +399,7 @@ complete -c fudge -f
|
||||
complete -c fudge -n '__fish_seen_subcommand_from eat' -F
|
||||
complete -C'fudge eat yummyin'
|
||||
# CHECK: yummyinmytummy
|
||||
complete -C"echo no commpletion inside comment # "
|
||||
cd -
|
||||
|
||||
rm -r $dir
|
||||
|
||||
Reference in New Issue
Block a user