]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge git://repo.or.cz/git-gui
authorJunio C Hamano <gitster@pobox.com>
Sun, 17 Feb 2008 01:42:49 +0000 (17:42 -0800)
committerJunio C Hamano <gitster@pobox.com>
Sun, 17 Feb 2008 01:42:49 +0000 (17:42 -0800)
* git://repo.or.cz/git-gui:
  git-gui: Correct size of dictionary name widget in options dialog
  git-gui: Paper bag fix bad string length call in spellchecker

git-gui/lib/option.tcl
git-gui/lib/spellcheck.tcl

index 3bfa2edf1ad8e5abb48df360758177a594dab1a1..ea80df009226d0ff14e8fe423abfe3d7a94ef56b 100644 (file)
@@ -193,9 +193,7 @@ proc do_options {} {
                        ${f}_config_new(gui.spellingdictionary) \
                        $all_dicts
                pack $w.$f.$optid.l -side left -anchor w -fill x
-               pack $w.$f.$optid.v -side left -anchor w \
-                       -fill x -expand 1 \
-                       -padx 5
+               pack $w.$f.$optid.v -side right -anchor e -padx 5
                pack $w.$f.$optid -side top -anchor w -fill x
        }
        unset all_dicts
index 01c2c4f0d1a51d29cc554b9209d7dbcd0af90515..7f018e4009dd17941d93bc9146fee7e3a2e07f0e 100644 (file)
@@ -308,7 +308,7 @@ method _read {} {
                # try to round out the word.
                #
                while {$curr ne $orig
-                && [string equal -length [llength $curr] $curr $orig]} {
+                && [string equal -length [string length $curr] $curr $orig]} {
                        set n_loc  [$w_text index "$e_loc +1c"]
                        set n_curr [$w_text get $b_loc $n_loc]
                        if {$n_curr eq $curr} {