improve presentation of pseudo windows

This commit is contained in:
chrys 2018-07-19 22:16:03 +02:00
parent 5f275ed373
commit 12d1d96afd
2 changed files with 5 additions and 2 deletions

View File

@ -57,7 +57,10 @@ class command():
return return
# deletion # deletion
if self.env['runtime']['screenManager'].isNegativeDelta(): if self.env['runtime']['screenManager'].isNegativeDelta():
# quirk for pseudo windows like finch (uses _ insteed of space in input box)
if self.env['screen']['newNegativeDelta'] != '_':
return return
# first place could not be the end of a word # first place could not be the end of a word
if self.env['screen']['newCursor']['x'] == 0: if self.env['screen']['newCursor']['x'] == 0:
return return

View File

@ -169,7 +169,7 @@ class screenManager():
else: else:
# cleanup scrollbars in windows to not produce wrong output # cleanup scrollbars in windows to not produce wrong output
if ('' in newScreenText) and ('' in oldScreenText): if ('' in newScreenText) and ('' in oldScreenText):
for c in ['','']: for c in ['','','']:
newScreenText = newScreenText.replace(c,'') newScreenText = newScreenText.replace(c,'')
oldScreenText = oldScreenText.replace(c,'') oldScreenText = oldScreenText.replace(c,'')
diff = self.differ.compare(oldScreenText.split('\n'),\ diff = self.differ.compare(oldScreenText.split('\n'),\