From 9438e49726f949b310e5efe733060f5d9ad2f4fc Mon Sep 17 00:00:00 2001 From: Riyyi Date: Tue, 22 Feb 2022 11:21:08 +0100 Subject: [PATCH] docs: fix truncate call in example and fix typo --- docs/config/lua/config/window_close_confirmation.md | 2 +- docs/config/lua/window-events/format-tab-title.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/config/lua/config/window_close_confirmation.md b/docs/config/lua/config/window_close_confirmation.md index 192f816e5..5d2a68524 100644 --- a/docs/config/lua/config/window_close_confirmation.md +++ b/docs/config/lua/config/window_close_confirmation.md @@ -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. diff --git a/docs/config/lua/window-events/format-tab-title.md b/docs/config/lua/window-events/format-tab-title.md index 2c8868782..991a06321 100644 --- a/docs/config/lua/window-events/format-tab-title.md +++ b/docs/config/lua/window-events/format-tab-title.md @@ -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}},