Skip to content

fix: improve sticky prompt handling and section detection#615

Merged
deathbeam merged 1 commit into
CopilotC-Nvim:canaryfrom
deathbeam:fix-sticky
Nov 25, 2024
Merged

fix: improve sticky prompt handling and section detection#615
deathbeam merged 1 commit into
CopilotC-Nvim:canaryfrom
deathbeam:fix-sticky

Conversation

@deathbeam
Copy link
Copy Markdown
Collaborator

This commit improves handling of sticky prompts by:

  1. Using proper line splitting and startswith check instead of gmatch
  2. Fixing the sticky prefix removal to only match start of line
  3. Ensuring proper rendering before section/block detection

The changes make sticky prompts more reliable and fix edge cases in the UI rendering.

Closes #614

This commit improves handling of sticky prompts by:
1. Using proper line splitting and startswith check instead of gmatch
2. Fixing the sticky prefix removal to only match start of line
3. Ensuring proper rendering before section/block detection

The changes make sticky prompts more reliable and fix edge cases in the
UI rendering.

Closes CopilotC-Nvim#614
@deathbeam deathbeam added the bug Something isn't working label Nov 25, 2024
@deathbeam deathbeam merged commit cf6f517 into CopilotC-Nvim:canary Nov 25, 2024
@deathbeam deathbeam deleted the fix-sticky branch November 25, 2024 18:10
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.

bug(sticky_prompt): cannot use > in prompt without sticking

1 participant