mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 08:56:43 +08:00
Silence string match
expression
This commit is contained in:
parent
725bcef117
commit
a33d12fe53
|
@ -30,7 +30,7 @@ function __npm_filtered_list_packages
|
|||
end
|
||||
|
||||
# Do not provide any completions if nothing has been entered yet to avoid long hang.
|
||||
if string match -r . (commandline -ct)
|
||||
if string match -rq . (commandline -ct)
|
||||
# Filter the results here rather than in the C++ code due to #5267
|
||||
all-the-package-names | string match -er -- '(?:\b|_|^)'(commandline -ct |
|
||||
string escape --style=regex) | head -n1000
|
||||
|
|
Loading…
Reference in New Issue
Block a user