rnkn / fountain-mode

Emacs major mode for screenwriting in Fountain plain-text markup
https://fountain-mode.org
GNU General Public License v3.0
399 stars 15 forks source link

Wrong match-string index for evaluation of scene indexes. #109

Closed smr894 closed 5 years ago

smr894 commented 5 years ago

Hello,

When adding scene numbers, the code halts with an error and only the first number is inserted (or none at all if at least one number was already present).

The error seems to be in function fountain-get-scene-number, where calls to (match-string 8) should be replaced by (match-string 9) as the 8th sub match refers to the first # of the scene number.

Regards,

(Version used: 2.7.3, on Emacs 26.3)

rnkn commented 5 years ago

Thanks for investigating/reporting this. Fixed in b21ba32cb54047d4f32a384876a0d3f5f91e111f