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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user