Show More
@@ -6,7 +6,7 b' Requires Python 2.3 or newer.' | |||
|
6 | 6 | |
|
7 | 7 | This file contains all the classes and helper functions specific to IPython. |
|
8 | 8 | |
|
9 |
$Id: iplib.py 1 |
|
|
9 | $Id: iplib.py 1478 2006-07-26 14:20:44Z vivainio $ | |
|
10 | 10 | """ |
|
11 | 11 | |
|
12 | 12 | #***************************************************************************** |
@@ -1775,8 +1775,8 b' want to merge them back into the new files.""" % locals()' | |||
|
1775 | 1775 | # push). |
|
1776 | 1776 | |
|
1777 | 1777 | #print 'push line: <%s>' % line # dbg |
|
1778 | self.autoindent_update(line) | |
|
1779 | ||
|
1778 | for subline in line.splitlines(): | |
|
1779 | self.autoindent_update(subline) | |
|
1780 | 1780 | self.buffer.append(line) |
|
1781 | 1781 | more = self.runsource('\n'.join(self.buffer), self.filename) |
|
1782 | 1782 | if not more: |
@@ -1818,6 +1818,14 b' want to merge them back into the new files.""" % locals()' | |||
|
1818 | 1818 | if line.strip(): |
|
1819 | 1819 | if continue_prompt: |
|
1820 | 1820 | self.input_hist_raw[-1] += '%s\n' % line |
|
1821 | if self.has_readline: # and some config option is set? | |
|
1822 | try: | |
|
1823 | histlen = self.readline.get_current_history_length() | |
|
1824 | newhist = self.input_hist_raw[-1].rstrip() | |
|
1825 | self.readline.remove_history_item(histlen-1) | |
|
1826 | self.readline.replace_history_item(histlen-2,newhist) | |
|
1827 | except AttributeError: | |
|
1828 | pass # re{move,place}_history_item are new in 2.4. | |
|
1821 | 1829 | else: |
|
1822 | 1830 | self.input_hist_raw.append('%s\n' % line) |
|
1823 | 1831 |
General Comments 0
You need to be logged in to leave comments.
Login now