Closed ImNtReal closed 3 years ago
Worked for me with highlight 3.58
, fails with highlight 3.59
.
I just pushed a change for printing the line contents when this case fails, so if you pulling the latest code from master
you might get some hints on what's going wrong.
Seems like the latest version of Highlight adds some invisible data at the start of the string:
~/s/moar (master|✚1) $ highlight --out-format=esc -i sample-files/very-long-line.txt|hexdump -C|head
00000000 1b 5b 30 30 3b 30 30 6d 31 20 32 20 33 20 34 20 |.[00;00m1 2 3 4 |
00000010 35 20 36 20 37 20 38 20 39 20 31 30 20 30 31 32 |5 6 7 8 9 10 012|
00000020 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 |3456789012345678|
00000030 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 |9012345678901234|
00000040 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 |5678901234567890|
00000050 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 |1234567890123456|
00000060 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 |7890123456789012|
00000070 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 |3456789012345678|
00000080 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 |9012345678901234|
00000090 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 |5678901234567890|
~/s/moar (master|✚1) $
This was only a problem with running the tests, won't release a new version for this.
Unless this is blocking you somehow @ImNtReal?
And thanks for reporting!
Changed my mind, this fix is now released: https://github.com/walles/moar/releases/tag/1.0
I'm currently unable to pass tests for 0.9.23, or HEAD on Arch Linux.
Seems to work correctly.