In ledger-occur, hide nothing if there is no match
This could cause error when reconciling transaction that are included. Some message should be shown to explain why nothing happen when interactively call ledger-occur.
This commit is contained in:
parent
cf6a23b2fe
commit
d3964b66d5
1 changed files with 20 additions and 19 deletions
|
|
@ -128,6 +128,7 @@ When REGEX is nil, unhide everything, and remove higlight"
|
|||
prompt))
|
||||
|
||||
(defun ledger-occur-create-folded-overlays(buffer-matches)
|
||||
(if buffer-matches
|
||||
(let ((overlays
|
||||
(let ((prev-end (point-min))
|
||||
(temp (point-max)))
|
||||
|
|
@ -152,7 +153,7 @@ When REGEX is nil, unhide everything, and remove higlight"
|
|||
(overlay-put ovl 'intangible t))
|
||||
(push (make-overlay (cadr (car(last buffer-matches)))
|
||||
(point-max)
|
||||
(current-buffer) t nil) overlays))))
|
||||
(current-buffer) t nil) overlays)))))
|
||||
|
||||
|
||||
(defun ledger-occur-create-xact-overlays (ovl-bounds)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue