##// END OF EJS Templates
Jorgen Cederlof's patch for storing multiline history entries...
vivainio -
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 1365 2006-06-15 19:11:26Z vivainio $
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
@@ -1,3 +1,8 b''
1 2006-07-26 Ville Vainio <vivainio@gmail.com>
2
3 * iplib.py: history now stores multiline input as single
4 history entries. Patch by Jorgen Cederlof.
5
1 6 2006-07-18 Walter Doerwald <walter@livinglogic.de>
2 7
3 8 * IPython/Extensions/ibrowse.py (ix): Make cursor visible over
General Comments 0
You need to be logged in to leave comments. Login now