Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/terminal/input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ auto InputParser::feed(std::string_view bytes) -> std::vector<Event> {
const std::size_t before = events.size();
const int acks_before = acks_;
// tmux with extended-keys on re-encodes what a terminal
// sends: ESC ] arrives as CSI 27;3;93 ~ (Alt+]) and ESC \
// as CSI 27;3;92 ~ (Alt+\). Followed by a clipboard reply
// sends: ESC ] arrives as CSI 27;3;93 ~ (Alt+]) and
// ESC \ as CSI 27;3;92 ~ (Alt+\). Followed by a clipboard reply
// ("5522;" / "52;"), it is that reply's OSC opener, not a
// key: read it as one, or the reply is typed in as text.
if (buf_ == "\x1b[27;3;93~") {
Expand Down
4 changes: 2 additions & 2 deletions tests/test_style.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ TEST_CASE("theme: a swap survives the fullscreen double-buffer too") {
std::string out1;
RenderPipeline<stage::Idle>::start(back, pool, slot, out1)
.clear().paint(Element{tree()}.build())
.open_frame(false).write_diff(front);
.open_frame(false).write_diff(front).close_frame(false);
assert(out1.find("48;2;17;34;51") != std::string::npos);

std::swap(front, back); // present
Expand All @@ -700,7 +700,7 @@ TEST_CASE("theme: a swap survives the fullscreen double-buffer too") {
std::string out2;
RenderPipeline<stage::Idle>::start(back, pool, slot, out2)
.clear().paint(Element{tree()}.build())
.open_frame(false).write_diff(front);
.open_frame(false).write_diff(front).close_frame(false);
assert(out2.find("48;2;250;251;252") != std::string::npos);
assert(out2.find("48;2;17;34;51") == std::string::npos);

Expand Down
Loading