diff: DiffSyntaxHighlighter refactor part III
commit77a96f10876ccfb5d2ff3fb7a8b443ed79a183de
authorDavid Aguilar <davvid@gmail.com>
Sat, 18 Mar 2023 20:48:11 +0000 (18 13:48 -0700)
committerDavid Aguilar <davvid@gmail.com>
Sat, 18 Mar 2023 20:48:11 +0000 (18 13:48 -0700)
tree1358c5f3feec232b7e1993749be31e6a9dfd8275
parentd0a96a71cfd66517d3a98747b0abcfe262255e5e
diff: DiffSyntaxHighlighter refactor part III

Simplify things further by turning the free-standing functions into
methods on the DiffsyntaxHighlighter class. This eliminates the need
to pass variables around, as all of the state is already inside of the
DiffSyntaxHighlighter class.

Signed-off-by: David Aguilar <davvid@gmail.com>
cola/widgets/diff.py