Skip to content

aw-leading-char-face height changes cursor position #253

@jeffvalk

Description

@jeffvalk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions