mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-04 02:51:31 -08:00
Make sure widget buttons always have a left box line
* lisp/wid-edit.el (widget-specify-button): Add an invisible before-string to the button overlay. (bug#51550)
This commit is contained in:
parent
cc9ac56081
commit
a67b1f1944
1 changed files with 2 additions and 1 deletions
|
|
@ -437,8 +437,9 @@ the :notify function can't know the new value.")
|
|||
(follow-link (widget-get widget :follow-link))
|
||||
(help-echo (widget-get widget :help-echo)))
|
||||
(widget-put widget :button-overlay overlay)
|
||||
(if (functionp help-echo)
|
||||
(when (functionp help-echo)
|
||||
(setq help-echo 'widget-mouse-help))
|
||||
(overlay-put overlay 'before-string #(" " 0 1 (invisible t)))
|
||||
(overlay-put overlay 'button widget)
|
||||
(overlay-put overlay 'keymap (widget-get widget :keymap))
|
||||
(overlay-put overlay 'evaporate t)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue