branch: externals/dape commit f523773d6ffd792b18551be29eda6fbb84b0ef0b Author: Vladimir Ivanov <ivv...@gmail.com> Commit: GitHub <nore...@github.com>
Get a substring from the minibuffer prompt without text properties. (#175) Copyright-paperwork-exempt: yes --- dape.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dape.el b/dape.el index e17cba66b2..0b10fc26ba 100644 --- a/dape.el +++ b/dape.el @@ -4876,7 +4876,8 @@ Update `dape--inlay-hint-overlays' from SCOPES." "Display current configuration in minibuffer in overlay." (pcase-let* ((`(,key ,config ,error-message ,hint-rows) dape--minibuffer-cache) - (str (string-trim (buffer-substring (minibuffer-prompt-end) (point-max)))) + (str (string-trim + (buffer-substring-no-properties (minibuffer-prompt-end) (point-max)))) (`(,hint-key ,hint-config) (ignore-errors (dape--config-from-string str))) (default-directory (or (with-current-buffer dape--minibuffer-last-buffer