mirror of
https://github.com/org-roam/org-roam
synced 2025-09-28 16:50:58 -05:00
Recent changes to how candidates are formatted (using a display property to allow for searching in the full candidate while only showing enough to fit in the frame), #1754, causes problems when the field value is already preformatted (a user function, like the one provided in doom emacs, already applies some faces with `propertize`). Generally the display string get messed up and formatting gets applied to the whole display. This PR updates the call that add the display property to the candidate to remove all the styling from the candidate before the styled (and truncated) display string is added as a property. This allows the display string to look correct according to the properties a user has already assigned. This PR also fixes another bug from this change, where if a `field-value` is and empty string `""` it would not get padded out to the `field-width` causing misalignments between candidates.
43 KiB
43 KiB