================ @@ -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 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits