emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/lua-mode 2ce253c 133/468: lua-automark: fix multiline comm


From: Philip Kaludercic
Subject: [nongnu] elpa/lua-mode 2ce253c 133/468: lua-automark: fix multiline comments recognition which was failing when there was a single-line comment previously
Date: Thu, 5 Aug 2021 04:58:22 -0400 (EDT)

branch: elpa/lua-mode
commit 2ce253c56c3fb544369414b2a99ec275a78bc098
Author: immerrr <immerrr+lua@gmail.com>
Commit: immerrr <immerrr+lua@gmail.com>

    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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]