diff: use slices instead of indexing
commit3cc5e0a85b9ed5221688f48fb7931e59d1e38b63
authorDavid Aguilar <davvid@gmail.com>
Sat, 20 Oct 2018 22:34:40 +0000 (20 15:34 -0700)
committerDavid Aguilar <davvid@gmail.com>
Sat, 20 Oct 2018 22:35:22 +0000 (20 15:35 -0700)
treef3f1eead42915ca24cd9130f9c20f849f240ebba
parentf49988cdc881de289a86132d574aecb4c69a57f6
diff: use slices instead of indexing

Make the semantics safer and faster by taking slices into self.lines
rather than indexing into it.

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