Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix slice out of range when using insert text with overwrite option #241

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mbrostami
Copy link

@mbrostami mbrostami commented Aug 2, 2021

When you use InsertText with overwrite option, the length of the current text is not being checked and it causes panic if the current text's length is smaller than new text's length.

Fixes #110

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

panic: runtime error: slice bounds out of range
1 participant