Skip to content

Commit

Permalink
fix(tabs): only encode tab_cwd when vim.base64 exists (#1003)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibhagwan committed Jan 19, 2024
1 parent f021b28 commit 7b7e80d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/fzf-lua/providers/buffers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,9 @@ M.tabs = function(opts)
function(s) return s end,
utils.ansi_codes[opts.hls.tab_marker])

local tab_cwd_tilde_base64 = vim.base64.encode(tab_cwd_tilde)
local tab_cwd_tilde_base64 = vim.base64
and vim.base64.encode(tab_cwd_tilde)
or tab_cwd_tilde
if not opts.current_tab_only then
cb(string.format("%d)%s:%s%s\t%s", t, tab_cwd_tilde_base64, utils.nbsp,
fn_title_hl(title),
Expand Down

0 comments on commit 7b7e80d

Please sign in to comment.