From ad8ffe7bc4965376d36554c228c0112f8a54d9df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rn=20Gustav=20Larsen?= Date: Wed, 3 Apr 2024 14:15:18 +0200 Subject: [PATCH] Reintroduced the extra move back on the x-axis, if we are not at the edge of the screen. This seems to make all the different input and screen types work again. --- src/ftxui/component/screen_interactive.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ftxui/component/screen_interactive.cpp b/src/ftxui/component/screen_interactive.cpp index ef2bb6fb..2b1c62ab 100644 --- a/src/ftxui/component/screen_interactive.cpp +++ b/src/ftxui/component/screen_interactive.cpp @@ -841,7 +841,7 @@ void ScreenInteractive::Draw(Component component) { // Set cursor position for user using tools to insert CJK characters. { - int const dx = dimx_ - 1 - cursor_.x; + int const dx = dimx_ - 1 - cursor_.x + int(dimx_ != terminal.dimx); int const dy = dimy_ - 1 - cursor_.y; set_cursor_position.clear();