[margin-path] Tentative fix for background clean-up

master
Jacopo De Simoi 3 years ago
parent 79ac9016d6
commit f1f7839f8d
  1. 13
      ace-window.el

@ -401,12 +401,13 @@ LEAF is (PT . WND)."
(goto-char (+ pt 1))
(push (cons wnd old-pt) aw--windows-points)))
;; this is where we would need to add a display-margin thingie
(overlay-put ol 'before-string
(propertize "." 'display
`((margin left-margin)
,(propertize
(concat " " (aw--overlay-str wnd pt path))
'face (if (window-minibuffer-p wnd) 'aw-minibuffer-leading-char-face 'aw-leading-char-face)))))
(let ((str-margin (concat " " (aw--overlay-str wnd pt path))))
(add-face-text-property 0 (length str-margin) `(:background ,(face-attribute 'default :background)) nil str-margin)
(overlay-put ol 'before-string
(propertize "." 'display
`((margin left-margin)
,(propertize str-margin
'face (if (window-minibuffer-p wnd) 'aw-minibuffer-leading-char-face 'aw-leading-char-face))))))
(overlay-put ol 'window wnd)
(push ol avy--overlays-lead)))))

Loading…
Cancel
Save