From 7088647a3f0278af2ab5aa30359a4ca64cbcaaa7 Mon Sep 17 00:00:00 2001 From: Erik Osheim Date: Tue, 9 Jun 2009 11:00:41 -0400 Subject: [PATCH] init log earlier to catch more errors --HG-- branch : pmacs2 --- application.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/application.py b/application.py index 7282692..dd0818c 100755 --- a/application.py +++ b/application.py @@ -16,6 +16,9 @@ class Application(object): self.stdscr = stdscr self.y, self.x = self.stdscr.getmaxyx() + # we have to do this early so we can log errors + self.log = buffer.LogBuffer() + # initialize some basic stuff self.config = {} self.highlighted_ranges = [] @@ -146,7 +149,6 @@ class Application(object): # initialize our buffers # note that only the first buffer will be initially visible buffers.append(buffer.about.AboutBuffer()) - self.log = buffer.LogBuffer() buffers.append(self.log) if self.rcerror: buffers.insert(0, buffer.data.DataBuffer('*RcError*', self.rcerror))