Skip to content

Commit

Permalink
Add SwitchToTab handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaraslaut committed Oct 4, 2024
1 parent c28c78a commit 3a8db2f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/contour/display/TerminalDisplay.h
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ class TerminalDisplay: public QQuickItem
return unbox(terminal().currentScreen().historyLineCount());
}

[[nodiscard]] vtbackend::PageSize calculatePageSize() const
[[nodiscard]] vtbackend::PageSize calculatePageSize() const
{
assert(_renderer);
assert(_session);
Expand Down
1 change: 1 addition & 0 deletions src/contour/ui.template/Terminal.qml.in
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ ContourTerminal
onSwitchToTabLeft: terminalSessions.switchToTabLeft()
onSwitchToTabRight: terminalSessions.switchToTabRight()
onCloseTab: terminalSessions.closeTab()
onSwitchToTab: (i) => terminalSessions.switchToTab(i)

Rectangle {
id : backgroundColor
Expand Down
5 changes: 4 additions & 1 deletion src/vtbackend/StatusLineBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,10 @@ struct VTSerializer

std::string visit(StatusLineDefinitions::VTType const&) { return std::format("{}", vt.terminalId()); }

std::string visit(StatusLineDefinitions::Tabs const&) { return std::format("{}", vt.guiTabInfoForStatusLine()); }
std::string visit(StatusLineDefinitions::Tabs const&)
{
return std::format("{}", vt.guiTabInfoForStatusLine());
}
// }}}
};

Expand Down

0 comments on commit 3a8db2f

Please sign in to comment.