Simplify check if index is nil in …--jump-to-register.

This commit is contained in:
tastytea 2020-03-15 20:55:14 +01:00
parent fa6153bfc4
commit d50c5d122f
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ Works on markers and file-queries."
(let* ((register-list (register-quicknav--registers))
(index (cl-position (register-quicknav--last-register) register-list))
(stop-searching))
(unless (eq index nil)
(when index
(if next
(cl-incf index)
(cl-decf index)))