branch : pmacs2
This commit is contained in:
moculus 2008-11-20 21:16:38 +00:00
parent 3b10120e58
commit 525f1e70f9
2 changed files with 5 additions and 5 deletions

View File

@ -751,7 +751,7 @@ class Perl(mode.Fundamental):
def get_inc(self): def get_inc(self):
if self.perlinc is None: if self.perlinc is None:
perllib = a.config.get('perl.lib') perllib = self.window.application.config.get('perl.lib')
if perllib: if perllib:
cmd = "PERL5LIB=%r perl -e 'print join(\"\\n\", @INC);'" % perllib cmd = "PERL5LIB=%r perl -e 'print join(\"\\n\", @INC);'" % perllib
else: else:

View File

@ -238,10 +238,10 @@ class Window(object):
# make sure we aren't "centering" on the end of the file (where half the # make sure we aren't "centering" on the end of the file (where half the
# screen is empty). that is, unless that's what the user wants # screen is empty). that is, unless that's what the user wants
# (indicated by force=True). # (indicated by force=True).
if not force: #if not force:
(x2, y2) = self.last_visible_coords() # (x2, y2) = self.last_visible_coords()
if y2 < y or x2 < x: # if y2 < y or x2 < x:
x, y = x2, y2 # x, y = x2, y2
self.first = Point(x - (x % self.width), y) self.first = Point(x - (x % self.width), y)
self.redraw() self.redraw()
def lower_view(self): def lower_view(self):