Show More
@@ -463,6 +463,8 b' class WxController(ConsoleWidget, PrefilterFrontEnd):' | |||||
463 | # If characters where erased, check if we have to |
|
463 | # If characters where erased, check if we have to | |
464 | # remove a line. |
|
464 | # remove a line. | |
465 | # XXX: What about DEL? |
|
465 | # XXX: What about DEL? | |
|
466 | # FIXME: This logics should be in ConsoleWidget, as it is | |||
|
467 | # independant of IPython | |||
466 | current_line, _ = self.CurLine |
|
468 | current_line, _ = self.CurLine | |
467 | current_pos = self.GetCurrentPos() |
|
469 | current_pos = self.GetCurrentPos() | |
468 | current_line_number = self.LineFromPosition(current_pos) |
|
470 | current_line_number = self.LineFromPosition(current_pos) | |
@@ -470,8 +472,6 b' class WxController(ConsoleWidget, PrefilterFrontEnd):' | |||||
470 | len_prompt = len(self.continuation_prompt()) |
|
472 | len_prompt = len(self.continuation_prompt()) | |
471 | if ( current_line.startswith(self.continuation_prompt()) |
|
473 | if ( current_line.startswith(self.continuation_prompt()) | |
472 | and current_col == len_prompt): |
|
474 | and current_col == len_prompt): | |
473 | print 'BACK', current_line, self.current_prompt_line, \ |
|
|||
474 | current_line_number |
|
|||
475 | new_lines = [] |
|
475 | new_lines = [] | |
476 | for line_num, line in enumerate( |
|
476 | for line_num, line in enumerate( | |
477 | self.input_buffer.split('\n')): |
|
477 | self.input_buffer.split('\n')): |
General Comments 0
You need to be logged in to leave comments.
Login now