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();