From 046b1e897ea49f1b880a24b10176b509803bd96d Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 8 Mar 2020 05:48:35 +0100 Subject: [PATCH] Update comment. --- register-quicknav.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/register-quicknav.el b/register-quicknav.el index 950f2f2..f9b0c44 100644 --- a/register-quicknav.el +++ b/register-quicknav.el @@ -167,8 +167,7 @@ Works on markers and file-queries." (when (< register-pos (point)) (setq index (cl-position register register-list))))))) - ;; If an index was found, set it to the next/previous register. If not, set - ;; it to the first/last. + ;; Check if index is valid, correct it if not, jump to register with index. (if index (progn (when (or (> index (- (length register-list) 1)) (< index 0))