diff --git a/mode/perl.py b/mode/perl.py index 650a48d..bfb4eb9 100644 --- a/mode/perl.py +++ b/mode/perl.py @@ -751,7 +751,7 @@ class Perl(mode.Fundamental): def get_inc(self): if self.perlinc is None: - perllib = a.config.get('perl.lib') + perllib = self.window.application.config.get('perl.lib') if perllib: cmd = "PERL5LIB=%r perl -e 'print join(\"\\n\", @INC);'" % perllib else: diff --git a/window.py b/window.py index 53f4989..f81f6ae 100644 --- a/window.py +++ b/window.py @@ -238,10 +238,10 @@ class Window(object): # 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 # (indicated by force=True). - if not force: - (x2, y2) = self.last_visible_coords() - if y2 < y or x2 < x: - x, y = x2, y2 + #if not force: + # (x2, y2) = self.last_visible_coords() + # if y2 < y or x2 < x: + # x, y = x2, y2 self.first = Point(x - (x % self.width), y) self.redraw() def lower_view(self):