summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLibravatar Bert Wesarg <bert.wesarg@googlemail.com>2010-11-19 21:43:48 +0100
committerLibravatar Pat Thoyts <patthoyts@users.sourceforge.net>2010-11-22 21:52:51 +0000
commit1ab862862fb985131ae081ddde4d8f8b7e23c17b (patch)
tree8b09d8a7247023c5852364fee23ee7eb28ed863b /lib
parentgit-gui: respect conflict marker size (diff)
downloadtgif-1ab862862fb985131ae081ddde4d8f8b7e23c17b.tar.xz
git-gui: fix browsers [Up To Parent] in sub-sub-directories.
browser_path used to end with a slash, so the regexp matches the empty string and therefore removes nothing. Fix this. Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com> Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/browser.tcl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/browser.tcl b/lib/browser.tcl
index c2415729e0..a8c6223511 100644
--- a/lib/browser.tcl
+++ b/lib/browser.tcl
@@ -121,7 +121,7 @@ method _parent {} {
if {$browser_stack eq {}} {
regsub {:.*$} $browser_path {:} browser_path
} else {
- regsub {/[^/]+$} $browser_path {} browser_path
+ regsub {/[^/]+/$} $browser_path {/} browser_path
}
set browser_status [mc "Loading %s..." $browser_path]
_ls $this [lindex $parent 0] [lindex $parent 1]