mirror of
https://github.com/wez/wezterm.git
synced 2024-12-24 13:52:55 +03:00
19 lines
327 B
Markdown
19 lines
327 B
Markdown
# `tab:active_pane()`
|
|
|
|
{{since('nightly')}}
|
|
|
|
A convenience accessor for returning the active pane in the tab.
|
|
|
|
In earlier versions of wezterm, you could obtain this via:
|
|
|
|
```lua
|
|
function active_pane(tab)
|
|
for _, item in ipairs(tab:panes_with_info()) do
|
|
if item.is_active then
|
|
return item.pane
|
|
end
|
|
end
|
|
end
|
|
```
|
|
|