alexherbo2 / kakoune.cr

A command-line tool for Kakoune
https://kakoune.org
The Unlicense
54 stars 11 forks source link

auto-pairs: typing closing pair produces an extra one #23

Closed maximbaz closed 3 years ago

maximbaz commented 3 years ago

kakrc consists of this one line: source "/usr/share/kcr/rc/auto-pairs.kak"; enable-auto-pairs

open kak, press i().

Expected: () Actual: ())

kcr from https://github.com/alexherbo2/kakoune.cr/commit/4f86083e1b9af896815e320cbc1b67488c5cab4c

alexherbo2 commented 3 years ago

I cannot reproduce.

maximbaz commented 3 years ago

I'll try now kakoune from master. Do I need to do anything special when using auto-pairs with kcr?

we put /usr/share/kak/rc/addons/kakoune.cr.kak so kakoune auto-loads that one, that's why I only source auto-pairs.kak by hand.

maximbaz commented 3 years ago

OK it works as expected in kakoune from master! Want to try to investigate why it doesn't work in the latest stable release? Or close if you are not interested to support the released version