branch: externals/dape
commit 836eec264ab35d11982f0563c536dac518fcf026
Author: Richard Rae-Jones <[email protected]>
Commit: GitHub <[email protected]>
Fix silent failure on expanding variable (#282)
See svaante/dape#281 for full details.
When using dape with Doom Emacs, expanding variables in the `*dape-repl*`
buffer causes the variable output to disappear instead of expanding. The
content is deleted but not re-inserted.
This is because the content re-insertion silently fails if the REPL buffer
content has `field` text properties.
Copyright-paperwork-exempt: yes
---
dape.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dape.el b/dape.el
index 159b879e0e..c9495dfc72 100644
--- a/dape.el
+++ b/dape.el
@@ -4728,7 +4728,8 @@ The search is done backwards from POINT. The line is
marked with
(defun dape--repl-revert-region (&rest _)
"Revert region by cont text property dape--revert-tag."
- (when-let* ((fn (get-text-property (point) 'dape--revert-fn))
+ (when-let* ((inhibit-read-only t)
+ (fn (get-text-property (point) 'dape--revert-fn))
(start (save-excursion
(previous-single-property-change
(1+ (point)) 'dape--revert-tag)))