remove boarder checks

This commit is contained in:
Chrys 2019-04-27 16:08:19 +02:00
parent fe7152c0d9
commit ff1d474ca2

View File

@ -89,10 +89,10 @@ class barrierManager():
offset = xCursor - 1 offset = xCursor - 1
start = line[:offset].rfind(b) start = line[:offset].rfind(b)
if start != -1: if start != -1:
if not self.hasBorder(text, xCursor, yCursor, leftBarriers, start): #if not self.hasBorder(text, xCursor, yCursor, leftBarriers, start):
start = -1 # start = -1
else: #else:
start += 1 start += 1
break break
if start == -1: if start == -1:
return False, line return False, line
@ -101,8 +101,8 @@ class barrierManager():
end = line[start:].find(b) end = line[start:].find(b)
if end != -1: if end != -1:
end = start + end end = start + end
if not self.hasBorder(text, xCursor, yCursor,rightBarriers, end): #if not self.hasBorder(text, xCursor, yCursor,rightBarriers, end):
end = -1 # end = -1
break break
if end == -1: if end == -1:
return False, line return False, line