Skip to content

fix(chat): correct block selection logic by cursor - #1301

Merged
deathbeam merged 1 commit into
CopilotC-Nvim:mainfrom
deathbeam:finish-block-fix
Aug 9, 2025
Merged

fix(chat): correct block selection logic by cursor#1301
deathbeam merged 1 commit into
CopilotC-Nvim:mainfrom
deathbeam:finish-block-fix

Conversation

@deathbeam

Copy link
Copy Markdown
Collaborator

Refactored Chat:get_block to properly select the closest block to the cursor, considering the role filter and ensuring correct fallback to the last matching block. This improves accuracy when interacting with chat blocks in the UI.

Refactored Chat:get_block to properly select the closest block to the
cursor, considering the role filter and ensuring correct fallback to the
last matching block. This improves accuracy when interacting with chat
blocks in the UI.
@deathbeam deathbeam added the bug Something isn't working label Aug 9, 2025
@deathbeam
deathbeam merged commit 7e027df into CopilotC-Nvim:main Aug 9, 2025
1 check passed
@deathbeam
deathbeam deleted the finish-block-fix branch August 9, 2025 01:52
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.

1 participant