branch: externals/calibre
commit 96c692607c5954c2520df02d9970336942fdd080
Author: Kjartan Oli Agustsson <[email protected]>
Commit: Kjartan Oli Agustsson <[email protected]>
Maintain position even if past last book when unmarking all
* calibre-library.el (calibre-library-unmark-all): Maintain position
even if past the last book.
---
calibre-library.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/calibre-library.el b/calibre-library.el
index 281356da6c..1959a1a7b9 100644
--- a/calibre-library.el
+++ b/calibre-library.el
@@ -187,7 +187,9 @@ argument prompts for MARK."
(and (not mark) (not (char-equal current-mark 32))))
(tabulated-list-put-tag " " nil)))
(forward-line))
- (calibre-library--find-book book)))
+ (if book
+ (calibre-library--find-book book)
+ (goto-char (point-max)))))
(defun calibre-library-get-marked (&optional mark)
"Return books marked with MARK.