-
I create inputs to fzf_cb(table.concat({
tostring(i),
ansi.magenta(node:type()),
ansi.green(tostring(start_row)),
ansi.green(tostring(start_col)),
lines[start_row]:gsub('^\t', indent),
}, ':'), function() coroutine.resume(co) end) fzf shows the entries like:
it appends the What can I do to get rid of this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
This isn’t the entirety of the code, you’re calling something that adds the line at the end, |
Beta Was this translation helpful? Give feedback.
-
I found your problem, you’re using
lines[start_row]:gsub('^\t', indent)
-- This way we extract only the first tuple ret val
({ lines[start_row]:gsub('^\t', indent) })[1] |
Beta Was this translation helpful? Give feedback.
I found your problem, you’re using
gsub
directly inside the table which does return a tuple (nottable.concat
as I previously assumed), both gsub return values get unpacked into the table and then used as the extra fields: