Author: Luboš Luňák Date: 2022-04-03T17:52:00+02:00 New Revision: 11b6d2f9cdd5840efddce368d5f9e30f059859eb
URL: https://github.com/llvm/llvm-project/commit/11b6d2f9cdd5840efddce368d5f9e30f059859eb DIFF: https://github.com/llvm/llvm-project/commit/11b6d2f9cdd5840efddce368d5f9e30f059859eb.diff LOG: [lldb][gui] draw highlight for selected line even if empty Added: Modified: lldb/source/Core/IOHandlerCursesGUI.cpp Removed: ################################################################################ diff --git a/lldb/source/Core/IOHandlerCursesGUI.cpp b/lldb/source/Core/IOHandlerCursesGUI.cpp index 6f416ee8dae77..dbeb5b28e501c 100644 --- a/lldb/source/Core/IOHandlerCursesGUI.cpp +++ b/lldb/source/Core/IOHandlerCursesGUI.cpp @@ -7024,8 +7024,8 @@ class SourceFileWindowDelegate : public WindowDelegate { 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( _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits