status: do not exit diff mode when unselecting a file
commit301cf40feb5f90dee121bda1bac28703f5ad180c
authorDavid Aguilar <davvid@gmail.com>
Sun, 26 Feb 2023 00:05:29 +0000 (25 16:05 -0800)
committerDavid Aguilar <davvid@gmail.com>
Sun, 26 Feb 2023 00:05:29 +0000 (25 16:05 -0800)
tree9ba3cffaa4a023c6d1207fba9db5fbc3d76e7138
parentc5eb4fb97e020fc827814591052150740bb5b582
status: do not exit diff mode when unselecting a file

Update the show_selection() method to include diff mode
as one of its criteria for showing empty text without
affecting the mode. This allows us to stay in diff mode
until the "Exit Diff Mode" button is pressed.

Rename model methods to is_xxx() for consistency.

Signed-off-by: David Aguilar <davvid@gmail.com>
cola/cmds.py
cola/models/main.py
cola/widgets/diff.py
cola/widgets/main.py
cola/widgets/status.py
test/main_model_test.py