diff: display all files when a filename is deselected
commit8ad2770a66fcb0f6746ecd6358859754b053d5b2
authorDavid Aguilar <davvid@gmail.com>
Sun, 28 Jan 2024 07:59:52 +0000 (27 23:59 -0800)
committerDavid Aguilar <davvid@gmail.com>
Sun, 28 Jan 2024 08:58:32 +0000 (28 00:58 -0800)
tree3ed436525eb858196ddfddbc6cc5b0d050a37aeb
parent3b42dadc4e83978ef6322cea88e99a116e177e03
diff: display all files when a filename is deselected

Previously, the diff display was unchanged when unselecting a file
results in an empty selection.

Detect this condition and rerun the full diff instead.

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