fix for Bug #183

This commit is contained in:
Miroslav Stampar 2010-04-19 15:25:52 +00:00
parent 2840f20605
commit 7d3a200ab8

View File

@ -249,7 +249,7 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
if startCharIndex > 0:
output = '..' + output[2:]
if endCharIndex - startCharIndex == conf.progressWidth:
if (endCharIndex - startCharIndex == conf.progressWidth) and (endCharIndex < length-1):
output = output[:-2] + '..'
output += '_' * (min(length, conf.progressWidth) - len(output))