From c891e5e86cbf41251dfc76db90e4cdc9db342b79 Mon Sep 17 00:00:00 2001 From: Munif Tanjim Date: Fri, 12 Aug 2022 19:41:44 +0600 Subject: [PATCH] fix: column width for cwd tag (#66) --- lua/telescope/_extensions/frecency.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/telescope/_extensions/frecency.lua b/lua/telescope/_extensions/frecency.lua index 21f6486..6ed33f6 100644 --- a/lua/telescope/_extensions/frecency.lua +++ b/lua/telescope/_extensions/frecency.lua @@ -86,7 +86,7 @@ local frecency = function(opts) local function get_display_cols() local directory_col_width = 0 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 directory_col_width = #(utils.path_tail(state.active_filter)) + 1 else