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 arg counting bug in signature help #25

Merged
merged 2 commits into from
Aug 16, 2024
Merged

Fix arg counting bug in signature help #25

merged 2 commits into from
Aug 16, 2024

Conversation

aazuspan
Copy link
Owner

Closes #24

The old argument counting algorithm was flawed in a few cases, so I rewrote it to just count the number of argument separators between the triggering opcode and the cursor. To account for multi- word opcodes like CHO RDA, the first argument separator is ignored instead of offsetting the arg index, which created the original -1 index bug.

I also set , as a trigger character to get signature help after entering e.g. CHO RDA, (comma with no space).

The old argument counting algorithm was flawed in a few cases,
so I rewrote it to just count the number of argument separators
between the triggering opcode and the cursor. To account for multi-
word opcodes like CHO RDA, the first argument separator is ignored
instead of offsetting the arg index, which created the original
-1 index bug.
@aazuspan aazuspan added the bug Something isn't working label Aug 16, 2024
@aazuspan aazuspan self-assigned this Aug 16, 2024
@aazuspan aazuspan merged commit 332febf into main Aug 16, 2024
6 checks passed
@aazuspan aazuspan deleted the fix-arg-idx branch August 16, 2024 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

active_parameter out of range for first param of multi-word instructions
1 participant