From 54ed2ad44039f8871a00d0ce9928e62dd210b641 Mon Sep 17 00:00:00 2001 From: David Adam Date: Mon, 2 Sep 2019 22:59:52 +0800 Subject: [PATCH] history: implement exact matching by default for delete Brings behaviour into line with documented and intended behaviour. Closes #6070. --- share/functions/history.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/history.fish b/share/functions/history.fish index 1e3110dff..9f8a229af 100644 --- a/share/functions/history.fish +++ b/share/functions/history.fish @@ -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