mdgriffith / elm-markup

Elm-friendly markup

Home Page:https://package.elm-lang.org/packages/mdgriffith/elm-markup/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

editor example - off-by-one bug when applying style to selection

eniac314 opened this issue · comments

Applying style does not affect the last character selected. Replacing end.offset by end.offset + 1 in the SelectTo branch of the update function (Main.elm) fixes the issue.