:lipstick: Replace deprecated methods.

- Replace editor.getCursor() with editor.getLastCursor().
- :racehorse: Important because Deprecation Cop's stack slows down execution dramatically.