Skip to content

Conversation

andrewtavis
Copy link
Member

@andrewtavis andrewtavis commented Sep 10, 2022

@SaurabhJamadagni, I think this is what we need to close #188 😊 I think that most of the problems were coming from changePastTextsFromProxy. The command prompt crash on delete was happening because we weren't checking to make sure that we weren't in a command within this function. Beyond this, I saw that the crash when the cursor is at the start of the proxy also stopped happening when I removed this function and it's call within handleDeleteButtonPressed. It seems that everything is working without this function, so could you just check all this and see if I'm removing it by accident? Autocomplete is updating as the user deletes, so maybe something in how the new CommandState enum is functioning fixed a bug that made this function not necessary anymore?

Copy link
Collaborator

@SaurabhJamadagni SaurabhJamadagni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a very interesting outcome @andrewtavis! I think what was happening is that when we were checking for text in proxy, if the proxy contained nil, it was most likely entering the else case where the variables were being assigned and that would lead to it trying to delete letters that were nil. That's my guess. Glad it's fixed though :)

All the functions seem to be working so I think changePastTextFromProxy was redundant. I never thought of deleting the function entirely. Maybe that's because I wrote it and I might have been a bit biased. Not the best trait for a programmer haha. Once I figure out debugging, I might recreate this case and try to see how the control was being passed to identify the reason. Thanks for the review. Simply excited that this was solved 😊

@andrewtavis
Copy link
Member Author

That's what I'm thinking as well, @SaurabhJamadagni! And no stress on wanting to keep something you wrote! Just look at me and the damn booleans 😅 Glad to have this closed 😊

@andrewtavis andrewtavis merged commit 63454f3 into main Sep 11, 2022
@andrewtavis andrewtavis deleted the feature-188-deletefix branch September 11, 2022 08:07
@andrewtavis andrewtavis linked an issue Oct 2, 2022 that may be closed by this pull request
2 tasks
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.

Allow for case conjugation on case annotation button press Alphabetized Autocomplete
2 participants