Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aw-swap-window loses point location when both windows show the same buffer #222

Open
ville-h opened this issue Feb 13, 2022 · 2 comments
Open

Comments

@ville-h
Copy link

ville-h commented Feb 13, 2022

aw-swap-window loses point location when both windows show the same buffer.

  1. open a file
  2. split window
  3. move the points in windows to different locations
  4. aw-swap-window

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.

@ville-h ville-h changed the title aw-swap-window loses point location when both windows show same buffer aw-swap-window loses point location when both windows show the same buffer Feb 13, 2022
@ZacJoffe
Copy link

ZacJoffe commented Feb 25, 2022

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.

@ville-h
Copy link
Author

ville-h commented Feb 25, 2022

I am not using evil.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants