sourcegraph / cody

Type less, code more: Cody is an AI code assistant that uses advanced search and codebase context to help you write and fix code.
https://cody.dev
Apache License 2.0
2.71k stars 297 forks source link

bug: When edit code only processes one line of code, undo will cause problems #5209

Closed HangLu123 closed 2 months ago

HangLu123 commented 2 months ago

Version

latest

Describe the bug

image

When edit code only processes one line of code, undo will cause problems image image

Expected behavior

right behavior

Additional context

No response

HangLu123 commented 2 months ago

The inserted content is placed on the same line as the next line, and executing undo will not restore

umpox commented 2 months ago

Should be fixed by: https://github.com/sourcegraph/cody/pull/5259