remove parameter
This commit is contained in:
parent
f56e57dfe2
commit
a334139902
@ -156,16 +156,15 @@ class attributeManager():
|
|||||||
attributeFormatString = attributeFormatString.replace('fenrirFont', _('default'))
|
attributeFormatString = attributeFormatString.replace('fenrirFont', _('default'))
|
||||||
|
|
||||||
return attributeFormatString
|
return attributeFormatString
|
||||||
def trackHighlights(self, oldAttr, newAttr, text, lenght):
|
def trackHighlights(self, oldAttr, newAttr, text):
|
||||||
result = ''
|
result = ''
|
||||||
currCursor = None
|
currCursor = None
|
||||||
#if oldAttr == newAttr:
|
|
||||||
# return result, currCursor
|
if oldAttr == newAttr:
|
||||||
|
return result, currCursor
|
||||||
if len(newAttr) == 0:
|
if len(newAttr) == 0:
|
||||||
print('len')
|
|
||||||
return result, currCursor
|
return result, currCursor
|
||||||
if len(oldAttr) != len(newAttr):
|
if len(oldAttr) != len(newAttr):
|
||||||
print('ON len')
|
|
||||||
return result, currCursor
|
return result, currCursor
|
||||||
|
|
||||||
textLines = text.split('\n')
|
textLines = text.split('\n')
|
||||||
|
@ -159,7 +159,7 @@ class screenManager():
|
|||||||
try:
|
try:
|
||||||
if self.env['screen']['oldContentAttrib'] != self.env['screen']['newContentAttrib']:
|
if self.env['screen']['oldContentAttrib'] != self.env['screen']['newContentAttrib']:
|
||||||
if self.env['runtime']['settingsManager'].getSettingAsBool('focus', 'highlight'):
|
if self.env['runtime']['settingsManager'].getSettingAsBool('focus', 'highlight'):
|
||||||
self.env['screen']['newAttribDelta'], self.env['screen']['newCursorAttrib'] = self.env['runtime']['attributeManager'].trackHighlights(self.env['screen']['oldContentAttrib'], self.env['screen']['newContentAttrib'], self.env['screen']['newContentText'], self.env['screen']['columns'])
|
self.env['screen']['newAttribDelta'], self.env['screen']['newCursorAttrib'] = self.env['runtime']['attributeManager'].trackHighlights(self.env['screen']['oldContentAttrib'], self.env['screen']['newContentAttrib'], self.env['screen']['newContentText'])
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
self.env['runtime']['debug'].writeDebugOut('screenManager:update:highlight: ' + str(e),debug.debugLevel.ERROR)
|
self.env['runtime']['debug'].writeDebugOut('screenManager:update:highlight: ' + str(e),debug.debugLevel.ERROR)
|
||||||
|
Loading…
Reference in New Issue
Block a user