more tolerant Buffer::string
Fix horizontal scrolling support with replaced buffer ranges

tab character were not properly handled when scrolling horizontally