From e8bb97f4ea7812f22ca09a71aa86981d2ebc4273 Mon Sep 17 00:00:00 2001 From: Erik Osheim Date: Sun, 12 Jul 2009 14:55:22 -0400 Subject: [PATCH] updatd console-clear to use parentw --HG-- branch : pmacs2 --- mode/consolemini.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/mode/consolemini.py b/mode/consolemini.py index 1e65217..0733ef5 100644 --- a/mode/consolemini.py +++ b/mode/consolemini.py @@ -93,11 +93,12 @@ class ConsoleCancel(Method): w.application.close_completion_buffer() class ConsoleClear(Method): def execute(self, w, **vargs): - a = w.application - if not a.has_buffer_name('*Console*'): - raise Exception, "No console found!" - b = a.bufferlist.get_buffer_by_name('*Console*') - b.clear() + #a = w.application + #if not a.has_buffer_name('*Console*'): + # raise Exception, "No console found!" + #b = a.bufferlist.get_buffer_by_name('*Console*') + #b.clear() + w.buffer.parentw.buffer.clear() class ConsoleHistoryPrev(Method): def execute(self, w, **vargs):