-
Notifications
You must be signed in to change notification settings - Fork 0
go-prompt: fix update completion data #14
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
Conversation
3c05b6b
to
cc02710
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's wait for a user feedback since we don't have a reproducer.
Closes #944
-> Part of https://github.com/tarantool/tt/issues/944
c7ebd98
to
3bbf8fd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, update the commit message: each line should be 72 chars max.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, apply suggested changes.
The issue that in `GetSelectedSuggestion()` there is no checks that index in valid range. So here we are resetting `selected` index, if length of new array is less, than it was. Part of tarantool/tt#944
3bbf8fd
to
a8e4996
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, check that tarantool/tt#944 (comment) works fine.
Fixed * Crash after a completion update with a smaller suggestion (#14).
Fixed * Crash after a completion update with a smaller suggestion (#14).
The issue that in
GetSelectedSuggestion()
there is no checks that index in valid range. So here we are resettingselected
index, if length of new array is less, than it was.Part of tarantool/tt#944