git-cola's inotify integration causes it to automatically refresh itself
when files are changed by another process.
This can be problematic because refreshing the "diff" viewer causes it
to lose the user's selection.
Teach the "diff" viewer to save and restore the selection when its
contents change. When no selection is present, restore the previous
Reported-by: Peter Júnoš <email@example.com>
Signed-off-by: David Aguilar <firstname.lastname@example.org>