ace-window icon indicating copy to clipboard operation
ace-window copied to clipboard

`aw-leading-char-face` height changes cursor position

Open jeffvalk opened this issue 7 months ago • 0 comments

When the :height of aw-leading-char-face is 2.0 or greater, cursors are displayed immediately after the label overlay in each window when ace-window is invoked. When :height is less than 2.0, cursors remain at the original point positions in each buffer. The latter is the behavior I would presume is intended. Regardless, the difference is unexpected.

To illustrate, run emacs -Q and execute the following in the *scratch* buffer:

(package-initialize)
(require 'ace-window)

(split-window-right)
(split-window-below)

;; face height = 1.99
(progn
  (message "At height < 2.0, cursors remain at original point positions")
  (custom-set-faces
   '(aw-leading-char-face ((t (:height 1.99)))))
  (ace-window t))

;; face height = 2.0
(progn
  (message "At height >= 2.0, cursors are displayed at end of overlays")
  (custom-set-faces
   '(aw-leading-char-face ((t (:height 2.00)))))
  (ace-window t))

When the cursor is shown next to the label overlay, it's a bit distracting -- both because it detracts from the window label, and because it's curious to see the cursor there when point wasn't actively moved.

jeffvalk avatar Sep 09 '25 00:09 jeffvalk