Skip to content

Commit

Permalink
slightly cleaner way of doing this
Browse files Browse the repository at this point in the history
  • Loading branch information
derekmansen committed Dec 11, 2011
1 parent c44dbfe commit f97a618
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fuzzy-find-in-project.el
Expand Up @@ -199,9 +199,7 @@ This function opens a window showing possible completions for the letters typed
"Reads line `line-number' from the current buffer."
(save-excursion
(goto-char (point-min)) (forward-line (1- fuzzy-find-selected-completion-index))
(let ((begin-point (move-beginning-of-line nil))
(end-point (progn (move-end-of-line nil) (point))))
(buffer-substring-no-properties begin-point end-point))))
(buffer-substring-no-properties (line-beginning-position) (line-end-position))))

(defun fuzzy-find-select-completion ()
"Selects the file at location `fuzzy-find-completion-index' and exits the minibuffer."
Expand Down

0 comments on commit f97a618

Please sign in to comment.