Convert screen range to buffer range to takehard-tabs into account