Fossil SCM

Make sure that the close-button of tk's "diff" window ends the main-loop in all circumstances. Remove unnecessary space.

jan.nijtmans 2014-02-03 12:39 trunk
Commit c275d8ddbb87ddbb594f2d4c241affc2207fd74a
1 file changed +2 -1
+2 -1
--- src/diffcmd.c
+++ src/diffcmd.c
@@ -774,11 +774,11 @@
774774
@ grid remove $sb
775775
@ }
776776
@ }
777777
@ enableSync x
778778
@ }
779
-@
779
+@
780780
@ proc sync-y {first last} {
781781
@ disableSync y
782782
@ foreach c [cols] {
783783
@ $c yview moveto $first
784784
@ }
@@ -793,10 +793,11 @@
793793
@
794794
@ wm withdraw .
795795
@ wm title . $CFG(TITLE)
796796
@ wm iconname . $CFG(TITLE)
797797
@ bind . <q> exit
798
+@ bind . <Destroy> exit
798799
@ bind . <Tab> {cycleDiffs; break}
799800
@ bind . <<PrevWindow>> {cycleDiffs 1; break}
800801
@ bind . <Return> {
801802
@ event generate .files <1>
802803
@ event generate .files <ButtonRelease-1>
803804
--- src/diffcmd.c
+++ src/diffcmd.c
@@ -774,11 +774,11 @@
774 @ grid remove $sb
775 @ }
776 @ }
777 @ enableSync x
778 @ }
779 @
780 @ proc sync-y {first last} {
781 @ disableSync y
782 @ foreach c [cols] {
783 @ $c yview moveto $first
784 @ }
@@ -793,10 +793,11 @@
793 @
794 @ wm withdraw .
795 @ wm title . $CFG(TITLE)
796 @ wm iconname . $CFG(TITLE)
797 @ bind . <q> exit
 
798 @ bind . <Tab> {cycleDiffs; break}
799 @ bind . <<PrevWindow>> {cycleDiffs 1; break}
800 @ bind . <Return> {
801 @ event generate .files <1>
802 @ event generate .files <ButtonRelease-1>
803
--- src/diffcmd.c
+++ src/diffcmd.c
@@ -774,11 +774,11 @@
774 @ grid remove $sb
775 @ }
776 @ }
777 @ enableSync x
778 @ }
779 @
780 @ proc sync-y {first last} {
781 @ disableSync y
782 @ foreach c [cols] {
783 @ $c yview moveto $first
784 @ }
@@ -793,10 +793,11 @@
793 @
794 @ wm withdraw .
795 @ wm title . $CFG(TITLE)
796 @ wm iconname . $CFG(TITLE)
797 @ bind . <q> exit
798 @ bind . <Destroy> exit
799 @ bind . <Tab> {cycleDiffs; break}
800 @ bind . <<PrevWindow>> {cycleDiffs 1; break}
801 @ bind . <Return> {
802 @ event generate .files <1>
803 @ event generate .files <ButtonRelease-1>
804

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button