mirror of
https://github.com/rwinkhart/glamour-temp-MUTN.git
synced 2026-09-05 16:37:19 -04:00
Don't indent line if all we're outputting is ANSI sequences
This commit is contained in:
+1
-1
@@ -22,7 +22,7 @@ func (w *PaddingWriter) Write(b []byte) (int, error) {
|
||||
// ANSI escape sequence
|
||||
w.ansi = true
|
||||
} else if w.ansi {
|
||||
if (c >= 0x40 && c <= 0x5a) || (c >= 0x61 && c <= 0x7a) {
|
||||
if (c >= 0x41 && c <= 0x5a) || (c >= 0x61 && c <= 0x7a) {
|
||||
// ANSI sequence terminated
|
||||
w.ansi = false
|
||||
w.lineLen--
|
||||
|
||||
Reference in New Issue
Block a user