From: Luboš Luňák Date: Sun, 3 Apr 2022 14:08:02 +0000 (+0200) Subject: [lldb][gui] draw highlight for selected line even if empty X-Git-Tag: upstream/15.0.7~11630 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=11b6d2f9cdd5840efddce368d5f9e30f059859eb;p=platform%2Fupstream%2Fllvm.git [lldb][gui] draw highlight for selected line even if empty --- diff --git a/lldb/source/Core/IOHandlerCursesGUI.cpp b/lldb/source/Core/IOHandlerCursesGUI.cpp index 6f416ee..dbeb5b2 100644 --- a/lldb/source/Core/IOHandlerCursesGUI.cpp +++ b/lldb/source/Core/IOHandlerCursesGUI.cpp @@ -7024,8 +7024,8 @@ public: line = line.drop_back(); bool wasWritten = window.OutputColoredStringTruncated( 1, line, m_first_visible_column, line_is_selected); - if (line_is_selected && !wasWritten) { - // Draw an empty space to show the selected line if empty, + if (!wasWritten && (line_is_selected || is_pc_line)) { + // Draw an empty space to show the selected/PC line if empty, // or draw '<' if nothing is visible because of scrolling too much // to the right. window.PutCStringTruncated(