[Lldb-commits] [lldb] [lldb] Refactor string manipulation in Debugger.cpp (#91209) (PR #92565)
Adrian Prantl via lldb-commits
lldb-commits at lists.llvm.org
Fri May 17 16:57:24 PDT 2024
================
@@ -2067,7 +2067,7 @@ void Debugger::HandleProgressEvent(const lldb::EventSP &event_sp) {
const uint32_t term_width = GetTerminalWidth();
const uint32_t ellipsis = 3;
if (message.size() + ellipsis >= term_width)
- message = message.substr(0, term_width - ellipsis);
+ message.resize(message.size() - ellipsis);
----------------
adrian-prantl wrote:
Can you explain why `term_width` does not appear in the new patch?
https://github.com/llvm/llvm-project/pull/92565
More information about the lldb-commits
mailing list