fix for line selection highlight end of long lines
@@ -1398,6 +1398,6 @@ class TextBuffer(BackingTextBuffer):
if not (lowerRow < startRow or upperRow >= endRow):
# There is an overlap.
for i in range(start, end + 1):
- line = self.lines[startRow + i][selStartCol:maxCol]
+ line = self.lines[startRow + i][selStartCol:endCol]
window.addStr(top + i, selStartCol,
line + ' ' * (maxCol - len(line)), colorSelected)
