Skip to content

Commit

Permalink
Fix zk-index--sort-call
Browse files Browse the repository at this point in the history
  • Loading branch information
localauthor committed Jul 4, 2024
1 parent 225d262 commit e6b6e43
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions zk-index.el
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Set to nil to inhibit help-echo."
:type 'boolean)

(defcustom zk-index-cursor nil
"Cursor to use when zk-index is in the selected window.
"Cursor to use when `zk-index is in the selected window.
See `cursor-type’ for description of possible values."
:type
'(choice (const :tag "Frame default" t)
Expand Down Expand Up @@ -488,11 +488,12 @@ with query term STRING."
(defun zk-index--sort-call (sort-fn mode-string)
"Call SORT-FN with MODE-STRING."
(if (eq major-mode 'zk-index-mode)
(progn
(zk-index-refresh (zk-index--current-file-list)
zk-index-last-format-function
sort-fn
(buffer-name))
(zk-index--set-mode-name mode-string))
(zk-index--set-mode-name mode-string))
(user-error "Not in a ZK-Index")))

(defun zk-index-sort-modified ()
Expand Down

0 comments on commit e6b6e43

Please sign in to comment.