Okay I just pushed a "fix" to master to handle this case a bit better. If and only if the contents of a file are changed by Mend or Mend and Prettify, the cursor will now be positioned to the start of the tag that enclosed the previous cursor position instead of being moved to the very end of the document. Otherwise the cursor position is untouched.
That said, if M or M & P need to "fix" things by inserting or changing tags in the html tag hierarchy, the position may end up higher up the html tree or in the wrong place.
Hope this helps.
Quote:
Originally Posted by KevinH
No promises but I might be able to get the tag path to the block element that contains your current position and then try to get back at least to the block tag (assuming mend does not remove that tag and does not insert any new tags between the html tag and it) within the updated html file.
|