summaryrefslogtreecommitdiff
path: root/po
diff options
context:
space:
mode:
authorLibravatar Stefan Haller <stefan@haller-berlin.de>2012-09-19 20:17:27 +0200
committerLibravatar Paul Mackerras <paulus@samba.org>2012-09-23 15:03:18 +1000
commitb967135d89e8d8461d0590b2d5181781caeac741 (patch)
tree7db36f8a1957a51411076b0cf9267909a6c2e130 /po
parentMerge branch 'da/gitk-reload-tag-contents' of git://github.com/gitster/git (diff)
downloadtgif-b967135d89e8d8461d0590b2d5181781caeac741.tar.xz
gitk: Synchronize highlighting in file view when scrolling diff
Whenever the diff pane scrolls, highlight the corresponding file in the file list on the right. For a large commit with many files and long per-file diffs, this makes it easier to keep track of what you're looking at. This allows simplifying the prevfile and nextfile functions, because all they have to do is scroll the diff pane. In some situations we want to suppress this mechanism, for example when clicking on a file in the file list to select it, or when searching in the diff, in which case we want to highlight based on the current search hit and not the top line visible. In these cases it's not sufficient to set a "suppress" flag before scrolling and reset it afterwards, because the scrolltext notification is sent deferred from a timer or some such; so we need to remember the scroll position for which we want to suppress the auto-highlighting until the next call to scrolltext; a bit ugly, but does the job. Signed-off-by: Stefan Haller <stefan@haller-berlin.de> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'po')
0 files changed, 0 insertions, 0 deletions