Skip to content

Commit

Permalink
docs: clarify comment regarding rg --column
Browse files Browse the repository at this point in the history
  • Loading branch information
ibhagwan committed Dec 29, 2024
1 parent b3336ab commit 9eb4182
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/fzf-lua/providers/grep.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ local get_grep_cmd = function(opts, search_query, no_esc)

do
-- Auto add `--line-number` for grep and `--line-number --column` for rg
-- although `--column` implies `--line-number` with rg
-- NOTE: although rg's `--column` implies `--line-number` we still add
-- `--line-number` since we remove `--column` when search regex is empty
local bin = path.tail(command:match("[^%s]+"))
local bin2flags = {
grep = { { "--line-number", "-n" }, { "--recursive", "-r" } },
Expand Down

0 comments on commit 9eb4182

Please sign in to comment.