diff --git a/src/contour/display/TerminalDisplay.h b/src/contour/display/TerminalDisplay.h index 40863560da..a944d7d7ea 100644 --- a/src/contour/display/TerminalDisplay.h +++ b/src/contour/display/TerminalDisplay.h @@ -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); diff --git a/src/contour/ui.template/Terminal.qml.in b/src/contour/ui.template/Terminal.qml.in index 01a7fb39d8..962695b853 100644 --- a/src/contour/ui.template/Terminal.qml.in +++ b/src/contour/ui.template/Terminal.qml.in @@ -24,6 +24,7 @@ ContourTerminal onSwitchToTabLeft: terminalSessions.switchToTabLeft() onSwitchToTabRight: terminalSessions.switchToTabRight() onCloseTab: terminalSessions.closeTab() + onSwitchToTab: (i) => terminalSessions.switchToTab(i) Rectangle { id : backgroundColor diff --git a/src/vtbackend/StatusLineBuilder.cpp b/src/vtbackend/StatusLineBuilder.cpp index a59570a783..4b27cc44c3 100644 --- a/src/vtbackend/StatusLineBuilder.cpp +++ b/src/vtbackend/StatusLineBuilder.cpp @@ -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()); + } // }}} };