history: implement exact matching by default for delete

Brings behaviour into line with documented and intended behaviour.
Closes #6070.
This commit is contained in:
David Adam 2019-09-02 22:59:52 +08:00
parent 8b84f4f117
commit 54ed2ad440

View File

@ -109,7 +109,7 @@ function history --description "display or manipulate interactive command histor
end
test -z "$search_mode"
and set search_mode "--contains"
and set search_mode "--exact"
if test $search_mode = "--exact"
builtin history delete $search_mode $_flag_case_sensitive $searchterm