Changeset 3005

Show
Ignore:
Timestamp:
02/01/08 10:43:34 (10 months ago)
Author:
vivainio
Message:

interact_with_readline now stops indenting when no longer in continuation prompt

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • ipython/trunk/IPython/iplib.py

    r3004 r3005  
    15631563            try: 
    15641564                self.interact(banner) 
    1565                 # XXX for testing of a readline-decoupled repl loop 
    1566                 #self.interact_with_readline() 
     1565                #self.interact_with_readline()                 
     1566                # XXX for testing of a readline-decoupled repl loop, call interact_with_readline above 
     1567 
    15671568                break 
    15681569            except KeyboardInterrupt: 
     
    17031704        while not self.exit_now: 
    17041705            self.interact_prompt() 
    1705             line = line = raw_input_original().decode(self.stdin_encoding) 
     1706            if self.more: 
     1707                self.rl_do_indent = True 
     1708            else: 
     1709                self.rl_do_indent = False 
     1710            line = raw_input_original().decode(self.stdin_encoding) 
    17061711            self.interact_handle_input(line) 
    17071712