projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5121be
)
[lldb][gui] draw highlight for selected line even if empty
author
Luboš Luňák
<l.lunak@centrum.cz>
Sun, 3 Apr 2022 14:08:02 +0000
(16:08 +0200)
committer
Luboš Luňák
<l.lunak@centrum.cz>
Sun, 3 Apr 2022 15:52:00 +0000
(17:52 +0200)
lldb/source/Core/IOHandlerCursesGUI.cpp
patch
|
blob
|
history
diff --git
a/lldb/source/Core/IOHandlerCursesGUI.cpp
b/lldb/source/Core/IOHandlerCursesGUI.cpp
index
6f416ee
..
dbeb5b2
100644
(file)
--- 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(