Skip to content

Commit

Permalink
docs: fix missing pane parameter in format-window-title-event
Browse files Browse the repository at this point in the history
closes: #974
  • Loading branch information
wez committed Jul 25, 2021
1 parent 17a9b60 commit b953172
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/config/lua/window-events/format-window-title.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ to the default processing--not very useful except as a starting point for
making your own title text:

```lua
wezterm.on("format-window-title", function(tab, tabs, panes, config)
wezterm.on("format-window-title", function(tab, pane, tabs, panes, config)
local zoomed = ""
if tab.active_pane.is_zoomed then
zoomed = "[Z] "
Expand All @@ -37,6 +37,7 @@ end)
The parameters to the event are:

* `tab` - the [TabInformation](../TabInformation.md) for the active tab
* `pane` - the [PaneInformation](../PaneInformation.md) for the active pane
* `tabs` - an array containing [TabInformation](../TabInformation.md) for each of the tabs in the window
* `panes` - an array containing [PaneInformation](../PaneInformation.md) for each of the panes in the active tab
* `config` - the effective configuration for the window
Expand Down

0 comments on commit b953172

Please sign in to comment.