FIX: Word limit shouldn't break IME composition

There exists a bug in discourse boost composer.

For IME using language, like Chinese, the original logic will stop the IME composition when the word is near the limit, causing the bug shown in the figure.

This commit stops the cut when user is composing, while call the cut process after that.

Before:

After:

A PR is raised here:

1 Like