Show More
@@ -43,6 +43,7 b' class LineInfo(object):' | |||||
43 | Everything else on the line. |
|
43 | Everything else on the line. | |
44 | """ |
|
44 | """ | |
45 | def __init__(self, line, continue_prompt): |
|
45 | def __init__(self, line, continue_prompt): | |
|
46 | self.ip = IPython.ipapi.get() | |||
46 | self.line = line |
|
47 | self.line = line | |
47 | self.continue_prompt = continue_prompt |
|
48 | self.continue_prompt = continue_prompt | |
48 | self.pre, self.iFun, self.theRest = splitUserInput(line) |
|
49 | self.pre, self.iFun, self.theRest = splitUserInput(line) | |
@@ -50,8 +51,8 b' class LineInfo(object):' | |||||
50 | self.preChar = self.pre.strip() |
|
51 | self.preChar = self.pre.strip() | |
51 |
|
52 | |||
52 | # special override for !, which MUST always have top priority |
|
53 | # special override for !, which MUST always have top priority | |
53 |
if not self.preChar and self.iFun.startswith( |
|
54 | if not self.preChar and self.iFun.startswith(self.ip.IP.ESC_SHELL): | |
54 |
self.preChar = self.pre = |
|
55 | self.preChar = self.pre = self.ip.IP.ESC_SHELL | |
55 | self.iFun = self.iFun[1:] |
|
56 | self.iFun = self.iFun[1:] | |
56 | if self.preChar: |
|
57 | if self.preChar: | |
57 | self.preWhitespace = '' # No whitespace allowd before esc chars |
|
58 | self.preWhitespace = '' # No whitespace allowd before esc chars |
General Comments 0
You need to be logged in to leave comments.
Login now