docs: fix truncate call in example and fix typo
This commit is contained in:
1 parent
f0ed6ce0c9
commit
9438e49726
2 files changed
+2
-2
No files matched your search
@@ -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.
|
||||
|
||||
@@ -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}},
|
||||
|
||||
Reference in new issue
Block a user