[Lldb-commits] [lldb] 11b6d2f - [lldb][gui] draw highlight for selected line even if empty
Luboš Luňák via lldb-commits
lldb-commits at lists.llvm.org
Sun Apr 3 08:52:25 PDT 2022
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(
More information about the lldb-commits
mailing list