You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When avante suggest multiple changes inside one file, the diff lines aren't recalculate when editing the file. This lead to the following apply to be applied to the wrong lines. This has already been highlighted partially in a comment in #967.
To reproduce
Ask a question that will generate changes in multiple places in a file.
Apply the first diff (with a different amount of lines that the original code)
Apply another diff
The diff will apply to the wrong lines and be completely inconsistant.
Expected behavior
The lines should be recalculated, or avante should know where to apply the diff even when another place in the file has already be edited.
Describe the bug
When avante suggest multiple changes inside one file, the diff lines aren't recalculate when editing the file. This lead to the following
apply
to be applied to the wrong lines. This has already been highlighted partially in a comment in #967.To reproduce
Expected behavior
The lines should be recalculated, or avante should know where to apply the diff even when another place in the file has already be edited.
Installation method
Use nixvim with all it's default settings:
Environment
NVIM v0.10.3
Build type: Release
LuaJIT 2.1.1713773202
Run "nvim -V1 -v" for more info
Linux desktop 6.12.11 #1-NixOS SMP PREEMPT_DYNAMIC Thu Jan 23 16:23:05 UTC 2025 x86_64 GNU/Linux
Repro
The text was updated successfully, but these errors were encountered: