BurntSushi / ripgrep

ripgrep recursively searches directories for a regex pattern while respecting your gitignore
The Unlicense
48.97k stars 2.01k forks source link

fix the mistake of overriding mode #2879

Closed QWZeng closed 2 months ago

QWZeng commented 2 months ago

a non-searching mode can override non-searching mode. It’s likely just a mistake or typo : if !matches!(*self, Mode::Search()); it should be: if !matches!(new, Mode::Search())