mirror of
https://github.com/wez/wezterm.git
synced 2024-11-10 06:34:17 +03:00
docs: fix truncate call in example and fix typo
This commit is contained in:
parent
f0ed6ce0c9
commit
9438e49726
@ -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}},
|
||||
|
Loading…
Reference in New Issue
Block a user