[Lldb-commits] [lldb] [lldb] Correctly restore the cursor column after resizing the statusline (PR #145823)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Thu Jun 26 01:58:32 PDT 2025


================
@@ -102,20 +103,36 @@ void Statusline::UpdateScrollWindow(ScrollWindowMode mode) {
   const unsigned scroll_height =
       (mode == DisableStatusline) ? m_terminal_height : m_terminal_height - 1;
 
+  CursorPosition cursor_position = m_debugger.GetIOHandlerCursorPosition();
----------------
DavidSpickett wrote:

Move this into the if, I know it has to be done before the newline, but it can still be closer to point of use.

https://github.com/llvm/llvm-project/pull/145823


More information about the lldb-commits mailing list