mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-07 04:20:07 +01:00
Fix shell getMultilineCommand
Add limitation to avoid an infinite loop at EOF,
when programmatically called on the current prompt.
This commit is contained in:
@@ -946,7 +946,7 @@ class Shell(editwindow.EditWindow):
|
||||
startpos = self.GetCurrentPos() + ps1size
|
||||
line += 1
|
||||
self.GotoLine(line)
|
||||
while self.GetCurLine()[0][:ps2size] == ps2:
|
||||
while self.GetCurLine()[0][:ps2size] == ps2 and line < self.LineCount:
|
||||
line += 1
|
||||
self.GotoLine(line)
|
||||
stoppos = self.GetCurrentPos()
|
||||
|
||||
Reference in New Issue
Block a user