Skip to content
This repository has been archived by the owner on Sep 23, 2022. It is now read-only.

Commit

Permalink
fix: prevent error when closing parens or brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
Arvin Sevilla committed Sep 6, 2022
1 parent f0f9502 commit 508047d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mmm-region.el
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,10 @@ calls each respective submode's `syntax-propertize-function'."
(save-restriction
(when mmm-current-overlay
(narrow-to-region (overlay-start mmm-current-overlay)
(overlay-end mmm-current-overlay)))
(overlay-end mmm-current-overlay))
(put-text-property
(point-min) (point-max)
'syntax-table (syntax-table)))
(cond
(func
(funcall func beg end))
Expand Down

0 comments on commit 508047d

Please sign in to comment.