Skip to content

Commit

Permalink
hotfix(events:format-tab-title): truncate more whe showing neovim dir…
Browse files Browse the repository at this point in the history
…ectory
  • Loading branch information
sravioli committed Oct 26, 2023
1 parent ba8d013 commit 8d240c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion events/format-tab-title.lua
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function M.setup()
---instead of truncating the whole title, truncate to length the cwd to ensure
---that the right parenthesis always closes.
if max_width == config.tab_max_width then
cwd = wez.truncate_right(cwd, max_width - 13) .. "..."
cwd = wez.truncate_right(cwd, max_width - 14) .. "..."
end
title = string.format("%s ( %s)", nf.Vim.dev, cwd)
end
Expand Down

0 comments on commit 8d240c6

Please sign in to comment.