Show More
@@ -6,7 +6,7 b' Requires Python 2.3 or newer.' | |||||
6 |
|
6 | |||
7 | This file contains all the classes and helper functions specific to IPython. |
|
7 | This file contains all the classes and helper functions specific to IPython. | |
8 |
|
8 | |||
9 |
$Id: iplib.py 291 |
|
9 | $Id: iplib.py 2915 2007-12-31 13:05:11Z vivainio $ | |
10 | """ |
|
10 | """ | |
11 |
|
11 | |||
12 | #***************************************************************************** |
|
12 | #***************************************************************************** | |
@@ -2092,6 +2092,7 b' want to merge them back into the new files.""" % locals()' | |||||
2092 | if self.has_readline: # and some config option is set? |
|
2092 | if self.has_readline: # and some config option is set? | |
2093 | try: |
|
2093 | try: | |
2094 | histlen = self.readline.get_current_history_length() |
|
2094 | histlen = self.readline.get_current_history_length() | |
|
2095 | if histlen > 1: | |||
2095 | newhist = self.input_hist_raw[-1].rstrip() |
|
2096 | newhist = self.input_hist_raw[-1].rstrip() | |
2096 | self.readline.remove_history_item(histlen-1) |
|
2097 | self.readline.remove_history_item(histlen-1) | |
2097 | self.readline.replace_history_item(histlen-2, |
|
2098 | self.readline.replace_history_item(histlen-2, |
General Comments 0
You need to be logged in to leave comments.
Login now