Better fix of old | char when X window resizing
Modify Ben's changes for erasing the lingering border