fix: column width for cwd tag (#66)

This commit is contained in:
Munif Tanjim 2022-08-12 19:41:44 +06:00 committed by GitHub
parent 7b79627fd4
commit c891e5e86c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,7 +86,7 @@ local frecency = function(opts)
local function get_display_cols() local function get_display_cols()
local directory_col_width = 0 local directory_col_width = 0
if state.active_filter then if state.active_filter then
if state.active_filter_tag == "LSP" then if state.active_filter_tag == "LSP" or state.active_filter_tag == "CWD" then
-- TODO: Only add +1 if opts.show_filter_thing is true, +1 is for the trailing slash -- TODO: Only add +1 if opts.show_filter_thing is true, +1 is for the trailing slash
directory_col_width = #(utils.path_tail(state.active_filter)) + 1 directory_col_width = #(utils.path_tail(state.active_filter)) + 1
else else