Permalink
Browse files

Workaround for ack-next-file at buffer start.

  • Loading branch information...
1 parent e30786a commit 3d02009f20ee27bcbdb2001e5abc7ac8214f911e @nschum committed Apr 1, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 full-ack.el
View
@@ -629,6 +629,8 @@ DIRECTORY is the root directory. If called interactively, it is determined by
(defun ack-next-file (pos arg)
"Move to the next file in the *ack* buffer."
(interactive "d\np")
+ ;; Workaround for problem at the begining of the buffer.
+ (when (bobp) (incf arg))
(ack-next-marker pos arg 'ack-file "file"))
(defun ack-previous-file (pos arg)

0 comments on commit 3d02009

Please sign in to comment.