Skip to content

Commit

Permalink
fix(evil): ]f/[f opening broken symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
hlissner committed Apr 18, 2024
1 parent 0349dab commit 9620bb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/editor/evil/autoload/unimpaired.el
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ See `+evil/next-preproc-directive' for details."
(user-error "Must be called from a file-visiting buffer"))
(let* ((directory (file-name-directory buffer-file-name))
(filename (file-name-nondirectory buffer-file-name))
(files (cl-remove-if #'file-directory-p (doom-glob (file-name-directory buffer-file-name) "[!.]*")))
(files (cl-remove-if-not #'file-regular-p (doom-glob (file-name-directory buffer-file-name) "[!.]*")))
(index (cl-position filename files :test #'file-equal-p)))
(when (null index)
(user-error "Couldn't find this file in current directory"))
Expand Down

0 comments on commit 9620bb4

Please sign in to comment.