Skip to content

Commit

Permalink
use byte positions
Browse files Browse the repository at this point in the history
  • Loading branch information
Frédéric Bour authored and let-def committed Jun 24, 2019
1 parent 6a8742a commit a20a0e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion emacs/merlin.el
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,8 @@ DATA must be an assoc list with fields line and col."
(widen)
(goto-char point)
(format "%d:%d" (line-number-at-pos)
(- (point) (line-beginning-position))))))
(- (position-bytes (point))
(position-bytes (line-beginning-position)))))))

(defun merlin--make-bounds (data)
"From a remote merlin object DATA {\"start\": LOC1; \"end\": LOC2},
Expand Down

0 comments on commit a20a0e5

Please sign in to comment.