Sometimes we may want to reuse the return value of snip.tabstop(), such as in m[0].replace(/@/g, snip.tabstop(1)). This would cause hsnips to replace only the first instance with a correct tabstop, and leave the second instance as [gibberish]. This commit fixes it.
Sometimes we may want to reuse the return value of
snip.tabstop()
, such as inm[0].replace(/@/g, snip.tabstop(1))
. This would cause hsnips to replace only the first instance with a correct tabstop, and leave the second instance as [gibberish]. This commit fixes it.