ag.el
changeset 1522 bbc10891c9a0
parent 1521 df20553d4bd2
child 1523 4d0732762013
--- a/ag.el	Thu Mar 30 00:34:44 2017 +0300
+++ b/ag.el	Thu Mar 30 00:38:47 2017 +0300
@@ -19,7 +19,8 @@
           (goto-char (point-min)))
         (search-forward-regexp "^.*")
         (find-file-other-window (match-string 0))
-        (goto-line lineno)))))
+        (goto-char (point-min))
+        (forward-line (1- lineno))))))
 
 (defun my-ag-kill-process ()
   (interactive)