Skip to content

Commit

Permalink
Rename func.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Oct 10, 2020
1 parent 6906152 commit 8bb1597
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ivy-file-preview.el
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ It could either by `project-directory' or `default-directory'")
(memq ivy-file-preview--this-command '(ivy-searcher-search-file
ivy-searcher-search-project)))

(defun ivy-file-preview--filter-candidates ()
"Filter possible candidates for overlays."
(defun ivy-file-preview--init-ov-data ()
"Initialize overlays data."
(when (ivy-file-preview--ivy-searcher-p)
(setq ivy-file-preview--first-cand-index
(cl-position
Expand Down Expand Up @@ -204,7 +204,7 @@ If CURRENT-OV is non-nil it create overlay that are currently selected."

(defun ivy-file-preview--extract-candidates-overlay-data ()
"Extract the overlay data from current ivy candidates."
(ivy-file-preview--filter-candidates)
(ivy-file-preview--init-ov-data)
(let* ((fn (s-replace ivy-file-preview--current-dir "" ivy-file-preview--selected-file))
(cands (ivy-file-preview--candidates))
(cands-len (length cands)) current-cand entered ln-data
Expand Down

0 comments on commit 8bb1597

Please sign in to comment.