Skip to content

Commit

Permalink
Get a substring from the minibuffer prompt without text properties. (#…
Browse files Browse the repository at this point in the history
…175)

Copyright-paperwork-exempt: yes
  • Loading branch information
vonavi authored Nov 30, 2024
1 parent c0023d3 commit f523773
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dape.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f523773

Please sign in to comment.