Fixed a bug for non-full-width line display.