diff options
author | Junio C Hamano <junkio@cox.net> | 2006-11-08 13:43:08 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-11-08 13:43:08 -0800 |
commit | 659db3f673fe199bad6ce9cc625d3a1b098bfbcf (patch) | |
tree | 4c5b36142043fedaae4def2312fc2cae7c9c835e | |
parent | 3a946802bb2c1106d12861849414f66fdba62303 (diff) | |
parent | 67c22874cf82edae9b5c5f0a47c432d08d7ad426 (diff) | |
download | git-659db3f673fe199bad6ce9cc625d3a1b098bfbcf.tar.gz git-659db3f673fe199bad6ce9cc625d3a1b098bfbcf.tar.xz |
Merge git://git.kernel.org/pub/scm/gitk/gitk
* git://git.kernel.org/pub/scm/gitk/gitk:
[PATCH] gitk: Fix nextfile() and add prevfile()
-rwxr-xr-x | gitk | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -4440,12 +4440,27 @@ proc getblobdiffline {bdf ids} { } } +proc prevfile {} { + global difffilestart ctext + set prev [lindex $difffilestart 0] + set here [$ctext index @0,0] + foreach loc $difffilestart { + if {[$ctext compare $loc >= $here]} { + $ctext yview $prev + return + } + set prev $loc + } + $ctext yview $prev +} + proc nextfile {} { global difffilestart ctext set here [$ctext index @0,0] foreach loc $difffilestart { if {[$ctext compare $loc > $here]} { $ctext yview $loc + return } } } |