Open ville-h opened 2 years ago
Also experiencing this behavior on Emacs 29 git.
Edit: Did some debugging, @ville-h are you using evil by any chance? It seems that the call to set-window-buffer
invokes evil-ex-hl-update-highlights-scroll
at some point, which may be the perpetrator.
I am not using evil.
aw-swap-window
loses point location when both windows show the same buffer.The result is that the window which was targeted and has now become selected moves to the right location. The window which was originally selected is still showing the original location and not the other window's location. That is one of the locations was lost during the operation.