summaryrefslogtreecommitdiff
path: root/rc
diff options
context:
space:
mode:
authorOlivier Perret <olivier.perret@mailbox.org>2024-11-12 15:30:29 +0100
committerOlivier Perret <olivier.perret@mailbox.org>2024-11-12 15:30:29 +0100
commitd7fa9c87259694cdf39f491def9f9296b42dd24c (patch)
tree101419ccfa322d19e7d88acb7c50f90b492a5a7e /rc
parentd86e505fad397251a8a618c545a7d78f43a70a34 (diff)
grep.kak: make it possible to search for patterns starting with '-'
Diffstat (limited to 'rc')
-rw-r--r--rc/tools/grep.kak6
1 files changed, 3 insertions, 3 deletions
diff --git a/rc/tools/grep.kak b/rc/tools/grep.kak
index 9d97ffdd..9f317fc7 100644
--- a/rc/tools/grep.kak
+++ b/rc/tools/grep.kak
@@ -17,13 +17,13 @@ define-command -params .. -docstring %{
if [ $# -eq 0 ]; then
case "$kak_opt_grepcmd" in
ag\ * | git\ grep\ * | grep\ * | rg\ * | ripgrep\ * | ugrep\ * | ug\ *)
- set -- -F "$kak_selection"
+ set -- -F -- "$kak_selection"
;;
ack\ *)
- set -- -Q "$kak_selection"
+ set -- -Q -- "$kak_selection"
;;
*)
- set -- "$kak_selection"
+ set -- -- "$kak_selection"
;;
esac
fi