Review changes

This commit is contained in:
Blargian 2024-05-03 12:19:41 +02:00
parent 0bb62aaaa1
commit effcc09476
2 changed files with 3 additions and 3 deletions

View File

@ -97,7 +97,7 @@ namespace
enum ComputeWidthMode
{
Width, /// Calculate and return visible width
BytesBeforeLimit /// Calculate and return the maximum number of bytes when substring fits in visible width.
BytesBeforeLimit /// Calculate and return the maximum number of bytes when substring fits in visible width.
};
template <ComputeWidthMode mode>
@ -180,7 +180,7 @@ size_t computeWidthImpl(const UInt8 * data, size_t size, size_t prefix, size_t l
size_t next_width = width;
if (decoder.codepoint == '\x1b')
isEscapeSequence = true;
if (decoder.codepoint == '\t')
else if (decoder.codepoint == '\t')
next_width += 8 - (prefix + width) % 8;
else
next_width += wcwidth(decoder.codepoint);

View File

@ -1 +1 @@
SELECT format('\x1b[38;2;{0};{1};{2}m█\x1b[0m', 255, 128, 0) AS x FORMAT Pretty;
SELECT format('\x1b[38;2;{0};{1};{2}m█\x1b[0m', 255, 128, 0) AS x FORMAT Pretty;