diff --git a/phpactor.el b/phpactor.el index c311653..71c91b9 100644 --- a/phpactor.el +++ b/phpactor.el @@ -216,7 +216,7 @@ (point-min) (point-max))) (:path (phpactor--expand-local-file-name buffer-file-name)) (:source_path (phpactor--expand-local-file-name buffer-file-name)) - (:offset (1- (point))) + (:offset (1- (position-bytes (point)))) (:current_path (phpactor--expand-local-file-name buffer-file-name)) (t (error "`%s' is unknown argument" key))))