Yes, anytime an underlying file is overwritten that CodeView is currently showing in its QTextEdit widget, the cursor will move to the end of the file unless saved and restored somehow.
Given M and P can and does make wholesale changes to whitespace in the file, a cursor offset into the previous version (before M and P) can and will be pretty meaningless. M and P is not an editing command inside CodeView. M& P is taking the current contents of the file out of the QTextEdit Widget and passing it through gumbo with some extra smarts and then reloading it back in behind the scenes. So yes the cursor position from before is pretty meaningless.
Last edited by KevinH; 08-10-2018 at 06:34 PM.
|