mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 21:03:12 +00:00
Silence string match
expression
This commit is contained in:
parent
725bcef117
commit
a33d12fe53
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue