branch: elpa/lua-mode
commit caa3d0c380694ad0786dea33a629d6b40a779d35
Author: immerrr <[email protected]>
Commit: immerrr <[email protected]>
lua-jump-to-traceback: fix compilation warning about goto-line func
---
lua-mode.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lua-mode.el b/lua-mode.el
index 1fc0f35..eec9a64 100644
--- a/lua-mode.el
+++ b/lua-mode.el
@@ -1275,7 +1275,7 @@ t, otherwise return nil. BUF must exist."
(if (not (eq major-mode 'lua-mode))
(lua-mode))
;; FIXME: fix offset when executing region
- (goto-line line)
+ (goto-char (point-min)) (forward-line (1- line))
(message "Jumping to error in file %s on line %d" file line))))
(defun lua-prompt-line ()