make install executeable
This commit is contained in:
parent
ad036e6c62
commit
2ec4102f8b
0
install.sh
Normal file → Executable file
0
install.sh
Normal file → Executable file
@ -116,6 +116,7 @@ class driver():
|
|||||||
self.env['screenData']['newNegativeDelta'] = ''
|
self.env['screenData']['newNegativeDelta'] = ''
|
||||||
self.env['screenData']['newDelta'] = ''
|
self.env['screenData']['newDelta'] = ''
|
||||||
self.env['screenData']['newAttribDelta'] = ''
|
self.env['screenData']['newAttribDelta'] = ''
|
||||||
|
|
||||||
# changes on the screen
|
# changes on the screen
|
||||||
oldScreenText = re.sub(' +',' ',self.env['runtime']['screenManager'].getWindowAreaInText(self.env['screenData']['oldContentText']))
|
oldScreenText = re.sub(' +',' ',self.env['runtime']['screenManager'].getWindowAreaInText(self.env['screenData']['oldContentText']))
|
||||||
newScreenText = re.sub(' +',' ',self.env['runtime']['screenManager'].getWindowAreaInText(self.env['screenData']['newContentText']))
|
newScreenText = re.sub(' +',' ',self.env['runtime']['screenManager'].getWindowAreaInText(self.env['screenData']['newContentText']))
|
||||||
@ -149,4 +150,8 @@ class driver():
|
|||||||
else:
|
else:
|
||||||
self.env['screenData']['newDelta'] = ''.join(x[2:] for x in diffList if x[0] == '+')
|
self.env['screenData']['newDelta'] = ''.join(x[2:] for x in diffList if x[0] == '+')
|
||||||
self.env['screenData']['newNegativeDelta'] = ''.join(x[2:] for x in diffList if x[0] == '-')
|
self.env['screenData']['newNegativeDelta'] = ''.join(x[2:] for x in diffList if x[0] == '-')
|
||||||
|
|
||||||
|
# track highlighted
|
||||||
|
if self.env['screenData']['oldContentAttrib'] != self.env['screenData']['newContentAttrib']:
|
||||||
|
pass
|
||||||
|
|
||||||
|
@ -10,24 +10,24 @@ from collections import Counter
|
|||||||
def insertNewlines(string, every=64):
|
def insertNewlines(string, every=64):
|
||||||
return '\n'.join(string[i:i+every] for i in range(0, len(string), every))
|
return '\n'.join(string[i:i+every] for i in range(0, len(string), every))
|
||||||
|
|
||||||
def splitAtrrLines(string, every=64):
|
def splitOnPos(string, every=64):
|
||||||
return list(string[i:i+every] for i in range(0, len(string), every))
|
return list(string[i:i+every] for i in range(0, len(string), every))
|
||||||
|
|
||||||
old = b'eeeemmmeeeeeeeee'
|
old = b'eeeemmmeeeeeeeee'
|
||||||
new = b'eeeeeueeeeeeeeee'
|
new = b'eeeeeueeeeeeeeee'
|
||||||
text = 'das ist ein test'
|
text = 'das ist ein test'
|
||||||
|
|
||||||
def trackHighlights(oldAttr, newAttr, text):
|
def trackHighlights(oldAttr, newAttr, text, lenght):
|
||||||
result = ''
|
result = ''
|
||||||
currCursor = None
|
currCursor = None
|
||||||
if oldAttr == newAttr:
|
if oldAttr == newAttr:
|
||||||
return result, currCursor
|
return result, currCursor
|
||||||
if len(newAttr) == 0:
|
if len(newAttr) == 0:
|
||||||
return result, currCursor
|
return result, currCursor
|
||||||
textLines = insertNewlines(text,4)
|
textLines = insertNewlines(text,lenght)
|
||||||
textLines = textLines.split('\n')
|
textLines = textLines.split('\n')
|
||||||
old = splitAtrrLines(oldAttr,4)
|
old = splitOnPos(oldAttr,lenght)
|
||||||
new = splitAtrrLines(newAttr,4)
|
new = splitOnPos(newAttr,lenght)
|
||||||
if len(old) != len(new):
|
if len(old) != len(new):
|
||||||
return result, currCursor
|
return result, currCursor
|
||||||
if len(text) != len(new):
|
if len(text) != len(new):
|
||||||
|
Loading…
Reference in New Issue
Block a user