abo-abo / ace-window

Quickly switch windows in Emacs
984 stars 87 forks source link

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

Open ville-h opened 2 years ago

ville-h commented 2 years ago

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.

ZacJoffe commented 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.

ville-h commented 2 years ago

I am not using evil.