Paste and text insert could delete selected text, but then cancel operator execution due to buffer being too small. Ensure, that operator returns value based on state being actually changed or not. Pull Request: https://projects.blender.org/blender/blender/pulls/133569