summaryrefslogtreecommitdiff
path: root/lisp/ledger-xact.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/ledger-xact.el')
-rw-r--r--lisp/ledger-xact.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/ledger-xact.el b/lisp/ledger-xact.el
index 7f2200a4..f65e5ed6 100644
--- a/lisp/ledger-xact.el
+++ b/lisp/ledger-xact.el
@@ -36,7 +36,8 @@
:group 'ledger
:safe t)
-(defvar highlight-overlay (list))
+(defvar ledger-xact-highlight-overlay (list))
+(make-variable-buffer-local 'ledger-xact-highlight-overlay)
(defun ledger-find-xact-extents (pos)
"Return point for beginning of xact and and of xact containing position.
@@ -58,10 +59,10 @@ within the transaction."
"Move the highlight overlay to the current transaction."
(if ledger-highlight-xact-under-point
(let ((exts (ledger-find-xact-extents (point)))
- (ovl highlight-overlay))
- (if (not highlight-overlay)
+ (ovl ledger-xact-highlight-overlay))
+ (if (not ledger-xact-highlight-overlay)
(setq ovl
- (setq highlight-overlay
+ (setq ledger-xact-highlight-overlay
(make-overlay (car exts)
(cadr exts)
(current-buffer) t nil)))