Fix a problem where centering of cursor broke the highlight of the current line