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
# deletion
if self.env['runtime']['screenManager'].isNegativeDelta():
return
# quirk for pseudo windows like finch (uses _ insteed of space in input box)
if self.env['screen']['newNegativeDelta'] != '_':
return
# first place could not be the end of a word
if self.env['screen']['newCursor']['x'] == 0:
return

View File

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