improve presentation of pseudo windows
This commit is contained in:
parent
5f275ed373
commit
12d1d96afd
@ -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
|
||||||
|
@ -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'),\
|
||||||
|
Loading…
Reference in New Issue
Block a user