branch: elpa/logview commit 0738dd1dfe8e0ebe954e0ee866e10d295d9817dc Author: Paul Pogonyshev <pogonys...@gmail.com> Commit: Paul Pogonyshev <pogonys...@gmail.com>
Fix 'd' command on entries without details: instead of showing an error, it used to hide the next entry. --- logview.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/logview.el b/logview.el index b2c60c5731..f7131e5140 100644 --- a/logview.el +++ b/logview.el @@ -1209,9 +1209,10 @@ for how toggling works." (when (logview--match-current-entry) (forward-line) (let ((after-first-line (point)) - (end (if (logview--match-successive-entries 1) - (match-beginning 0) - (point-max)))) + (end (progn (backward-char) + (if (logview--match-successive-entries 1) + (match-beginning 0) + (point-max))))) (if (<= end after-first-line) (user-error "Current entry has no details") (logview--change-entry-details-visibility after-first-line end