From 6e4d5117aed3f6f013426d3191132d43660eb746 Mon Sep 17 00:00:00 2001 From: moculus Date: Thu, 29 May 2008 20:35:21 +0000 Subject: [PATCH] --HG-- branch : pmacs2 --- application.py | 5 +++++ method/introspect.py | 2 ++ 2 files changed, 7 insertions(+) diff --git a/application.py b/application.py index 5b376d9..53095bc 100755 --- a/application.py +++ b/application.py @@ -581,6 +581,10 @@ class Application(object): self.draw() while not self.done: i = self.win.getch() + + #if not self.mini_active and self.completion_window_is_open(): + # self.close_completion_buffer() + if i == curses.KEY_RESIZE: while i == curses.KEY_RESIZE: i = self.win.getch() @@ -593,6 +597,7 @@ class Application(object): while len(self.input.tokens): t = self.input.tokens.pop(0) self.active_window().mode.handle_token(t) + self.draw(err) # clear the error line; it might look confusing to the user diff --git a/method/introspect.py b/method/introspect.py index 385e0a1..4ad1455 100644 --- a/method/introspect.py +++ b/method/introspect.py @@ -2,6 +2,7 @@ import os, commands, re, sets, tempfile from subprocess import Popen, PIPE, STDOUT import buffer, default, dirutil, regex, util, window +import mode.mini from point import Point from method import DATATYPES, Method, Argument @@ -130,6 +131,7 @@ class TokenComplete(Method): w.buffer.delete(p1, p2) w.insert_string(p1, result) + #mode.mini.use_completion_window(w.application, result, candidates) if not candidates: w.set_error("No completion: %r" % result) elif len(candidates) == 1: