branch: elpa/lua-mode
commit 1716660b19cd4742236cd388530234608c1e4616
Author: immerrr <[email protected]>
Commit: immerrr <[email protected]>

    Fix interaction with electric-pair-mode (issue #54)
    
    Kudos to npostavs@github
---
 lua-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lua-mode.el b/lua-mode.el
index 59a6a0a..6a13330 100644
--- a/lua-mode.el
+++ b/lua-mode.el
@@ -714,7 +714,7 @@ Groups 6-9 can be used in any of argument regexps."
 (defun lua-electric-match (arg)
   "Insert character and adjust indentation."
   (interactive "P")
-  (insert-char last-command-event (prefix-numeric-value arg))
+  (self-insert-command (prefix-numeric-value arg))
   (if lua-electric-flag
       (lua-indent-line))
   (blink-matching-open))

Reply via email to