branch: elpa/lua-mode
commit 2ce253c56c3fb544369414b2a99ec275a78bc098
Author: immerrr <[email protected]>
Commit: immerrr <[email protected]>
lua-automark: fix multiline comments recognition which was failing when
there was a single-line comment previously
---
lua-mode.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lua-mode.el b/lua-mode.el
index 57ccd20..999845d 100644
--- a/lua-mode.el
+++ b/lua-mode.el
@@ -1308,8 +1308,9 @@ nil means automark is unnecessary because there were no
updates.")
"Updates `lua-automark-multiline-start-pos' upon buffer modification."
(save-excursion
(goto-char change-begin)
+ (beginning-of-line)
(setq lua-automark-multiline-start-pos
- (or (lua-comment-or-string-start) (line-beginning-position)))))
+ (or (lua-comment-or-string-start) (point)))))
(defun lua--automark-multiline-update-timer ()
(lua--automark-multiline-cleanup) ;; reset previous timer if it existed