[lldb][gui] draw highlight for selected line even if empty
authorLuboš Luňák <l.lunak@centrum.cz>
Sun, 3 Apr 2022 14:08:02 +0000 (16:08 +0200)
committerLuboš Luňák <l.lunak@centrum.cz>
Sun, 3 Apr 2022 15:52:00 +0000 (17:52 +0200)
lldb/source/Core/IOHandlerCursesGUI.cpp

index 6f416ee..dbeb5b2 100644 (file)
@@ -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(