chiark
/
gitweb
/
~cjwatson
/
blog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1f5959
)
m.code: minor.
author
Vladimír Vondruš
<mosra@centrum.cz>
Tue, 21 Feb 2023 10:51:49 +0000
(11:51 +0100)
committer
Vladimír Vondruš
<mosra@centrum.cz>
Tue, 21 Feb 2023 10:51:49 +0000
(11:51 +0100)
plugins/ansilexer.py
patch
|
blob
|
history
diff --git
a/plugins/ansilexer.py
b/plugins/ansilexer.py
index fd791d26973224a1b6555daece95ee97c55efe9b..c78ea870381da55078c610949abf12bb00da3c73 100644
(file)
--- a/
plugins/ansilexer.py
+++ b/
plugins/ansilexer.py
@@
-261,7
+261,7
@@
class AnsiLexer(RegexLexer):
return self._palette_start_colors[offset]
elif offset < 232:
offset = offset - 16
- offset, b = divmod
(offset,
6)
+ offset, b = divmod
(offset,
6)
r, g = divmod(offset, 6)
r = self._palette_cube_steps[r]
g = self._palette_cube_steps[g]