'lines|blines' nightly fix, cwd header added to 'oldfiles'

main
bhagwan 2 years ago
parent 340ad70215
commit 1c28cbc904

@ -1,5 +1,4 @@
local core = require "fzf-lua.core"
local utils = require "fzf-lua.utils"
local config = require "fzf-lua.config"
local M = {}
@ -42,9 +41,10 @@ M.oldfiles = function(opts)
end)
end
end
utils.delayed_cb(cb)
cb(nil)
end
opts = core.set_header(opts, 2)
return core.fzf_files(opts, contents)
end

@ -358,7 +358,7 @@ function M.is_term_bufname(bufname)
end
function M.is_term_buffer(bufnr)
local bufname = vim.api.nvim_buf_get_name(bufnr or 0)
local bufname = vim.api.nvim_buf_get_name(tonumber(bufnr) or 0)
return M.is_term_bufname(bufname)
end

Loading…
Cancel
Save