Skip to content

Commit 0807c43

Browse files
committed
fix: puclua string compatibility
like what ansi_escseq already does
1 parent e442bb2 commit 0807c43

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

lua/fzf-lua/path.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ function M.entry_to_file(entry, opts, force_uri)
549549
if #s > 1 then
550550
local newfile = file
551551
for i = 2, #s do
552-
newfile = ("%s:%s"):format(newfile, s[i])
552+
newfile = ("%s:%s"):format(tostring(newfile), s[i])
553553
if uv.fs_stat(newfile) then
554554
file = newfile
555555
line = s[i + 1]

lua/fzf-lua/profiles/hide.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ return {
4343
-- We hide the window first which happens instantly
4444
-- and then send <Esc> directly to the term channel
4545
fzf.hide()
46-
vim.api.nvim_chan_send(vim.bo[e.bufnr].channel, "\x1b")
46+
vim.api.nvim_chan_send(vim.bo[e.bufnr].channel, "\027")
4747
end, { buffer = e.bufnr, nowait = true })
4848
-- Call the users' on_create?
4949
if type(_on_create) == "function" then

lua/fzf-lua/providers/nvim.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ M.keymaps = function(opts)
473473
lhs = keymap.lhs:gsub("%s", "<Space>"),
474474
-- desc can be a multi-line string, normalize it
475475
desc = keymap.desc and string.gsub(keymap.desc, "\n%s+", "\r"),
476-
rhs = keymap.rhs or string.format("%s", keymap.callback)
476+
rhs = keymap.rhs or string.format("%s", tostring(keymap.callback))
477477
})
478478

479479
local k = string.format("[%s:%s:%s]", keymap.buffer, keymap.mode, keymap.lhs)

0 commit comments

Comments
 (0)