mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 13:53:10 +00:00
Allow disabling debug categories with leading -
This was always supposed to work but the string_prefixes_string call had the wrong order.
This commit is contained in:
parent
0863c237b0
commit
ee9e5d4996
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ void activate_flog_categories_by_pattern(const wcstring &inwc) {
|
|||
wcstring wc = inwc;
|
||||
std::replace(wc.begin(), wc.end(), L'_', L'-');
|
||||
for (const wcstring &s : split_string(wc, L',')) {
|
||||
if (string_prefixes_string(s, L"-")) {
|
||||
if (string_prefixes_string(L"-", s)) {
|
||||
apply_one_wildcard(s.substr(1), false);
|
||||
} else {
|
||||
apply_one_wildcard(s, true);
|
||||
|
|
Loading…
Reference in a new issue