Skip to content

Commit 2388dcd

Browse files
yilisharcsibhagwan
authored andcommitted
fix(marks): Use correct condition for marks filter
Commit 4cb7d7c inverted the behavior of `marks.marks` filtering.
1 parent 8d6c9cf commit 2388dcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/fzf-lua/providers/nvim.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ M.marks = function(opts)
254254
local buf = utils.CTX().bufnr
255255
local entries = {}
256256
local function add_mark(mark, line, col, text)
257-
if opts.marks and string.match(mark, opts.marks) then return end
257+
if opts.marks and not string.match(mark, opts.marks) then return end
258258
table.insert(entries, string.format("%s %s %s %s",
259259
utils.ansi_codes[opts.hls.buf_nr](string.format("%4s", mark)),
260260
utils.ansi_codes[opts.hls.path_linenr](string.format("%4s", tostring(line))),

0 commit comments

Comments
 (0)