Update comment.
This commit is contained in:
parent
0a433edb0d
commit
046b1e897e
|
@ -167,8 +167,7 @@ Works on markers and file-queries."
|
||||||
(when (< register-pos (point))
|
(when (< register-pos (point))
|
||||||
(setq index (cl-position register register-list)))))))
|
(setq index (cl-position register register-list)))))))
|
||||||
|
|
||||||
;; If an index was found, set it to the next/previous register. If not, set
|
;; Check if index is valid, correct it if not, jump to register with index.
|
||||||
;; it to the first/last.
|
|
||||||
(if index
|
(if index
|
||||||
(progn
|
(progn
|
||||||
(when (or (> index (- (length register-list) 1)) (< index 0))
|
(when (or (> index (- (length register-list) 1)) (< index 0))
|
||||||
|
|
Loading…
Reference in New Issue