1
1
mirror of https://github.com/wez/wezterm.git synced 2024-09-20 11:17:15 +03:00

docs: fix truncate call in example and fix typo

This commit is contained in:
Riyyi 2022-02-22 11:21:08 +01:00 committed by Wez Furlong
parent f0ed6ce0c9
commit 9438e49726
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
Whether to display a confirmation prompt when the window is closed by the
windowing environment, either because the user closed it with the window
decorations, or instructed their window managed to close it.
decorations, or instructed their window manager to close it.
Set this to `"NeverPrompt"` if you don't like confirming closing
windows every time.

View File

@ -89,7 +89,7 @@ wezterm.on("format-tab-title", function(tab, tabs, panes, config, hover, max_wid
-- ensure that the titles fit in the available space,
-- and that we have room for the edges.
local title = wezterm.truncate_to_width(tab.active_pane.title, max_width-2)
local title = wezterm.truncate_right(tab.active_pane.title, max_width-2)
return {
{Background={Color=edge_background}},