ThrawnCA commented on PR #1490:
URL: https://github.com/apache/commons-lang/pull/1490#issuecomment-3759694161

   I think the original bug arises from the logic that shifts the offset when 
it's close to the end:
   
           if (strLen - offset < maxWidth - abbrevMarkerLength) {
               offset = strLen - (maxWidth - abbrevMarkerLength);
           }
   
   This can result in the offset being moved left far enough that the code then 
decides the best option is to keep the start unchanged and just truncate the 
end - but the truncated part might include the actual requested offset 
character.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to