-
Notifications
You must be signed in to change notification settings - Fork 22
The cursor after quit the ediff session is not restored #39
Comments
Clean up Ediff buffers and restore window configuration (back to `ztree`) after quitting Ediff session.
Clean up Ediff buffers and restore window configuration (back to `ztree`) after quitting Ediff session.
Clean up Ediff buffers and restore window configuration (back to `ztree`) after quitting Ediff session.
@c02y Hi, could you please verify if the latest version fixes your issue. |
The same result, after quitting ediff, the cursor will jump to the left corner of the ztree buffer. |
I can't reproduce that event. |
@c02y could you please try to reproduce it on the latest version from MELPA? |
Tried to reproduce this issue and couldn't, the cursor is on the position where we left it. Hence I close this issues since there is no updates on how to reproduce it for a year. |
I now understand your issue. The problem is that ztree buffer has changed since the windows size has changed. You need to press "g" to refresh the buffer. |
- The window configurations are now stored as a stack rather than one buffer-local variable - Introduced global hook on window configuration change to redraw the contents of visible ztree buffers
Ok, please @c02y try again now. I've tested with default emacs running with "emacs -q" and manually loaded ztree sources. |
I just independently stumbled across this same problem. For me, it was related to the
At first I thought this may be related to the fact that there are prompts that come up to confirm closing the ediff variant buffers. But short circuiting the prompts with hint like
doesn't help. The cursor still gets reset to the beginning of the ztree buffer. Looking at the ediff cleanup code, I didn't see anything obvious that would make ztree behave differently... |
After quitting the ediff session for two different files, the point/cursor will be at the left-top (the head of Differences tree sentence in the ztree buffer) corner of the ztree buffer instead of the point/cursor where the ediff starts.
The text was updated successfully, but these errors were encountered: