I have a plugin that makes changes to certain documents via a regexp before they are saved.
It works, but after every save the scroll-position jumps to where ever the plugin made its last change, which isn’t necessarily the line I’m looking at.
Is there a way to “lock” the scroll-position while changes are being made, or at least restore the original?
Thanks in advance!