diff --git a/elisp/ghc-info.el b/elisp/ghc-info.el index 5e4ea27..4e763d8 100644 --- a/elisp/ghc-info.el +++ b/elisp/ghc-info.el @@ -148,7 +148,8 @@ (defun ghc-get-pos (buf line col) (save-excursion (set-buffer buf) - (goto-line line) + (goto-char (point-min)) + (forward-line (1- line)) (forward-char col) (point)))