branch: externals/dape
commit 09042abe1e395f522a344dca69fdfed5a1ab8234
Author: Daniel Pettersson <[email protected]>
Commit: Daniel Pettersson <[email protected]>
Call set-window-margins on margin changes
Try to address #220
---
dape.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/dape.el b/dape.el
index 94fef25a76..bc7103f64b 100644
--- a/dape.el
+++ b/dape.el
@@ -3078,7 +3078,9 @@ The indicator is `propertize'd with with FACE."
(propertize " " 'display `(left-fringe ,bitmap ,face))
(unless dape--original-margin
(setq-local dape--original-margin left-margin-width
- left-margin-width 2))
+ left-margin-width 2)
+ (set-window-margins (selected-window)
+ left-margin-width right-margin-width))
(propertize " " 'display `((margin left-margin)
,(propertize string 'face face)))))
@@ -3161,6 +3163,8 @@ Handling restoring margin if necessary."
;; Reset margin
(setq-local left-margin-width dape--original-margin
dape--original-margin nil)
+ (set-window-margins (selected-window)
+ left-margin-width right-margin-width)
(when-let* ((window (get-buffer-window buffer)))
(set-window-buffer window buffer)))))