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

debug: fix mappings #3570

Merged
merged 1 commit into from
Aug 20, 2023
Merged

debug: fix mappings #3570

merged 1 commit into from
Aug 20, 2023

Conversation

bhcleek
Copy link
Collaborator

@bhcleek bhcleek commented Aug 20, 2023

Apply mappings in correct order.

s:create_layout configures only breakpoint and continue mappings. s:continue configures all the the debug related mappings. s:create_layout is called in s:connect after it calls go#debug#Stack('halt'), which in turn calls s:continue, so be sure to only call s:continue in go#debug#Stack when its single argument is not 'halt'.

Fixes #3568

Apply mappings in correct order.

s:create_layout configures only breakpoint and continue mappings.
s:continue configures all the the debug related mappings.
s:create_layout is called in s:connect after it calls
go#debug#Stack('halt'), which in turn calls s:continue, so be sure to
only call s:continue in go#debug#Stack when its single argument is not
'halt'.

Fixes fatih#3568
@bhcleek bhcleek added this to the vim-go v1.29 milestone Aug 20, 2023
@bhcleek bhcleek merged commit 273634f into fatih:master Aug 20, 2023
8 checks passed
@bhcleek bhcleek deleted the debug/mappings branch August 20, 2023 22:14
bhcleek added a commit that referenced this pull request Aug 20, 2023
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.

go_debug_mappings not set properly
1 participant