Skip to content

Commit ba0b20f

Browse files
committed
[lldb] Avoid flickering by not clearing the statusline when redrawing
When redrawing the statusline, the current implementation would clear the current line before drawing the new content. Since we always overwrite the whole statusline from beginning to end, there's no need to clear it and we can avoid the potential for flickering. (cherry picked from commit 55b9515)
1 parent 0e52fa2 commit ba0b20f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lldb/source/Core/Statusline.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ void Statusline::Draw(std::string str) {
7575
locked_stream << ANSI_SAVE_CURSOR;
7676
locked_stream.Printf(ANSI_TO_START_OF_ROW,
7777
static_cast<unsigned>(m_terminal_height));
78-
locked_stream << ANSI_CLEAR_LINE;
7978
locked_stream << str;
8079
locked_stream << ANSI_NORMAL;
8180
locked_stream << ANSI_RESTORE_CURSOR;

0 commit comments

Comments
 (0)