We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24d329d commit ade0a55Copy full SHA for ade0a55
lua/dired/init.lua
@@ -682,7 +682,9 @@ Browser.refresh = function(state, path)
682
if not cfg.title then
683
cfg.title = curpath
684
elseif cfg.title[1][1] ~= curpath then
685
- cfg.title = vim.fs.joinpath(cfg.title[1][1], curpath)
+ local curtitle = cfg.title[1][1]
686
+ cfg.title = vim.startswith(curtitle, curpath) and curpath
687
+ or vim.fs.joinpath(cfg.title[1][1], curpath)
688
end
689
api.nvim_win_set_config(state.win, cfg)
690
0 commit comments