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):