mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
Review changes
This commit is contained in:
parent
0bb62aaaa1
commit
effcc09476
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user