branch: externals/olivetti
commit 39271d0193aa497712967945b7f9867cd271448e
Author: Paul Rankin <[email protected]>
Commit: Paul Rankin <[email protected]>
Only reset split-window param if olivetti-split-window
---
olivetti.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/olivetti.el b/olivetti.el
index cb980e5..075f70c 100644
--- a/olivetti.el
+++ b/olivetti.el
@@ -183,7 +183,8 @@ Cycle through all windows displaying current buffer and call
(defun olivetti-reset-window (window)
"Remove Olivetti's parameters and margins from WINDOW."
- (set-window-parameter window 'split-window nil)
+ (if (eq (window-parameter window 'split-window) 'olivetti-split-window)
+ (set-window-parameter window 'split-window nil))
(set-window-margins window nil))
(defun olivetti-split-window (&optional window size side pixelwise)