Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
widgets.diff: Save and restore selection across updates
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 cursor position. Closes #155 Reported-by: Peter Júnoš <petoju@gmail.com> Signed-off-by: David Aguilar <davvid@gmail.com>
- Loading branch information
Showing
3 changed files
with
41 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters