fix electric-pair support for 24.4+
Merge pull request #15 from waymondo/master

Fix electric-pair support for 24.4+