fixing search to use process_keyevent

Changed ReadLine._update_line to always redraw prompt
Moved keyboard using functions from history.py to EmacsMode
This commit is contained in:
Jorgen Stenarson
2008-06-30 21:47:11 +02:00
parent cd891ef5ea
commit b20b6ea320
4 changed files with 142 additions and 115 deletions
+3 -1
View File
@@ -422,7 +422,9 @@ class Readline(BaseReadline):
c=self.console
l_buffer=self.mode.l_buffer
c.cursor(0) #Hide cursor avoiding flicking
c.pos(*self.prompt_end_pos)
#c.pos(*self.prompt_end_pos)
c.pos(*self.prompt_begin_pos)
self._print_prompt()
ltext = l_buffer.quoted_text()
if l_buffer.enable_selection and l_buffer.selection_mark>=0:
start=len(l_buffer[:l_buffer.selection_mark].quoted_text())