ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/getfile3.6.tcl
(Generate patch)

Comparing ray/src/util/getfile3.6.tcl (file contents):
Revision 2.6 by greg, Wed Nov 30 16:04:39 1994 UTC vs.
Revision 2.7 by greg, Wed Nov 30 16:47:00 1994 UTC

# Line 172 | Line 172 | proc update_dir w {                    # Update working directory
172                  $w.de config -foreground $oldcol
173          }
174          set curdir [pwd]
175 +        set offset [expr [string length $curdir] - 32]
176 +        if {$offset > 0} {
177 +                $w.de view [expr $offset + \
178 +                        [string first / [string range $curdir $offset end]] \
179 +                                + 1]
180 +        }
181          $w.fm.fl delete 0 end
182          set ls ../
183          foreach f [glob -nocomplain *] {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines