Skip to content

Commit 6f4ff9e

Browse files
syohexdominikh
authored andcommitted
Fix obsoleted function warnings for newer Emacs
1 parent 8dce1e3 commit 6f4ff9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go-guru.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ If BUFFER, return the number of characters in that buffer instead."
318318

319319
(defun go-guru--goto-byte-column (offset)
320320
"Go to the OFFSETth byte in the current line."
321-
(goto-char (byte-to-position (+ (position-bytes (point-at-bol)) (1- offset)))))
321+
(goto-char (byte-to-position (+ (position-bytes (line-beginning-position)) (1- offset)))))
322322

323323
(defun go-guru--goto-pos (posn other-window)
324324
"Find the file containing the position POSN (of the form `file:line:col')

0 commit comments

Comments
 (0)