Cleanup and optimize Kate::TextCursor

Merged Waqar Ahmed requested to merge work/textcursor-cleanup into master
  • inline line() and reuse lineInternal()
  • unexport the class
  • dont always remove the cursor from the block when setPosition is called. Instead check if the block has changed and only remove the cursor in that case.
  • remove unused methods

Merge request reports