When manually kerning a long text, it is useful to change several characters at a time. This patch applies kerning on the whole selection.
- selstart = max_ii(0, selstart); fixes a crash when the cursor is at pos 0, and kerning modifies a value outside of the array.
- To reproduce on GNU/Linux, go to Edit Mode on a text object, place the cursor at the beginning of the line, kern exactly twice (alt + ←), and go back to Object Mode. A Floating Point Exception occurs.
- There have been times when I’ve needed to do some extreme kerning, in which case clamping the kerning value between [-20, 20] is frustrating; I believe this line should be removed.