fix history in combination with incomming messages

This commit is contained in:
chrys 2017-08-27 19:22:38 +02:00
parent c41a27c7db
commit b850960ab6

View File

@ -27,6 +27,9 @@ class command():
return
prevLine = self.env['screen']['oldContentText'].split('\n')[self.env['screen']['newCursor']['y']]
currLine = self.env['screen']['newContentText'].split('\n')[self.env['screen']['newCursor']['y']]
if prevLine == currLine:
if self.env['screen']['newDelta'] != '':
return
if not currLine.isspace():
currPrompt = currLine.find('$')
rootPrompt = currLine.find('#')