don't set list-box% content when set-string given column > 0#363
Open
jjsimpso wants to merge 1 commit intoracket:masterfrom
Open
don't set list-box% content when set-string given column > 0#363jjsimpso wants to merge 1 commit intoracket:masterfrom
jjsimpso wants to merge 1 commit intoracket:masterfrom
Conversation
- calling set-string with a column argument other than 0 overwrites content, which doesn't appear to store any data other than the string to display in column 0. this breaks future calls to get-string.
Contributor
Author
|
Below is some test code to reproduce or test the fix with. The Up/Down buttons swap items in the list. Each swap corrupts the data in the list. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Calling
set-stringwith a column argument other than 0 overwritescontent, which doesn't appear to store any data other than the string to display in column 0. This corrupts data returned byget-string.So,
(send lb set-string "foo" 1)changes the value returned by
(send lb get-string)