Solved issue of cursor not updating after resized

My first pull request, ever  :baby: