================
@@ -405,11 +407,9 @@ inline std::string TrimAndPad(llvm::StringRef str, size_t
visible_length,
// Output text that may contain ANSI codes, word wrapped (wrapped at
whitespace)
// to the given stream. The indent level of the stream is counted towards the
// output line length.
-// FIXME: If an ANSI code is applied to multiple words and those words are
split
-// across lines, the code will apply to the indentation as well as the
-// text.
inline void OutputWordWrappedLines(Stream &strm, llvm::StringRef text,
- uint32_t output_max_columns) {
+ uint32_t output_max_columns,
+ bool use_color) {
----------------
DavidSpickett wrote:
This name has always been half correct, but our setting and most users think of
it this way. So I was tempted to call this use_ansi but I thought that might be
even more confusing.
In some way, here it's "use even more ansi". Since if color was disabled, the
input string has all ansi removed.
https://github.com/llvm/llvm-project/pull/183558
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits