]> git.eshelyaron.com Git - emacs.git/commit
Avoid display bugs after editable-field widgets
authorMauro Aranda <maurooaranda@gmail.com>
Wed, 26 Feb 2025 11:06:14 +0000 (08:06 -0300)
committerEshel Yaron <me@eshelyaron.com>
Fri, 28 Feb 2025 11:17:10 +0000 (12:17 +0100)
commit24d87be9a38f24ffdacc6df1e78f17b0b0a23e7f
tree099e210cba993e31b95fa411f9c6ed71cb7a7654
parentb406e44c679587294c439c8a77c0f5166f0ba591
Avoid display bugs after editable-field widgets

* lisp/wid-edit.el (widget-specify-button): Don't add an
invisible space before the button to avoid bugs that surface
with the widget-field face.  The Widget library is not
the one that puts a :box attribute for the button face, and we
can't control what library users put after editable-field
widgets.

(widget-specify-field): Rather, add the invisible space here,
after the newline.  That way, we protect whatever comes after
the editable-field widget.  (Bug#51550)

(cherry picked from commit 86dd455e9c7402737e2c0c45190fabbf1d3ee8c1)
lisp/wid-edit.el