Extend the selection rectangle to cover the text in file browsers

Previously, the selection rectangle would end 1 pixel before the
clipping rectangle for the right edge of drawn text.