diff --git a/src/terminal/input.cpp b/src/terminal/input.cpp index 55f2c91..2537a86 100644 --- a/src/terminal/input.cpp +++ b/src/terminal/input.cpp @@ -232,8 +232,8 @@ auto InputParser::feed(std::string_view bytes) -> std::vector { 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~") { diff --git a/tests/test_style.cpp b/tests/test_style.cpp index 76ff6ff..bfeb126 100644 --- a/tests/test_style.cpp +++ b/tests/test_style.cpp @@ -684,7 +684,7 @@ TEST_CASE("theme: a swap survives the fullscreen double-buffer too") { std::string out1; RenderPipeline::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 @@ -700,7 +700,7 @@ TEST_CASE("theme: a swap survives the fullscreen double-buffer too") { std::string out2; RenderPipeline::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);