Fix restoring cursorline after focus change.