summaryrefslogtreecommitdiff
path: root/lisp/ldg-exec.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/ldg-exec.el')
-rw-r--r--lisp/ldg-exec.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/ldg-exec.el b/lisp/ldg-exec.el
index 4a485072..c09b364d 100644
--- a/lisp/ldg-exec.el
+++ b/lisp/ldg-exec.el
@@ -45,9 +45,9 @@
(with-current-buffer (get-buffer-create "*Ledger Error*")
(insert-buffer-substring ledger-output)
(make-frame)
- (fit-frame)
+ (fit-window-to-buffer)
(view-mode)
- (toggle-read-only)))
+ (setq buffer-read-only t)))
(defun ledger-exec-success-p (ledger-output-buffer)
(with-current-buffer ledger-output-buffer