Summary
when I add some new lines and use :w to save my change, all the content of the buffer was deleted. I have to use "u" to recover my code.
Reproduction Steps
I add a comment

and then I use :w to save
then:

Helix log
2024-08-24T09:45:47.326 helix_lsp::transport [ERROR] rust-analyzer err <- "2024-08-24T01:45:47.326556Z ERROR project_model::workspace: cyclic deps: bevy_math(Idx::(307)) -> bevy_math(Idx::(307)), alternative path: bevy_math(Idx::(307))\n"
2024-08-24T09:45:49.106 helix_lsp::transport [ERROR] rust-analyzer err <- "2024-08-24T01:45:49.106669Z ERROR project_model::workspace: cyclic deps: bevy_math(Idx::(307)) -> bevy_math(Idx::(307)), alternative path: bevy_math(Idx::(307))\n"
2024-08-24T09:46:08.669 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(6)), original request likely timed out
2024-08-24T09:46:08.670 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(15)), original request likely timed out
2024-08-24T09:46:08.670 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(16)), original request likely timed out
2024-08-24T09:46:08.880 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(7)), original request likely timed out
2024-08-24T09:46:08.910 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(8)), original request likely timed out
2024-08-24T09:46:09.001 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(9)), original request likely timed out
2024-08-24T09:46:11.663 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(19)), original request likely timed out
Platform
Linux(fedora40)
Terminal Emulator
alacrity/zed terminal/vscode terminal/gnome terminal
Installation Method
dnf install
Helix Version
helix 24.7 (079f544)
Summary
when I add some new lines and use :w to save my change, all the content of the buffer was deleted. I have to use "u" to recover my code.
Reproduction Steps
I add a comment


and then I use :w to save
then:
Helix log
2024-08-24T09:45:47.326 helix_lsp::transport [ERROR] rust-analyzer err <- "2024-08-24T01:45:47.326556Z ERROR project_model::workspace: cyclic deps: bevy_math(Idx::(307)) -> bevy_math(Idx::(307)), alternative path: bevy_math(Idx::(307))\n"
2024-08-24T09:45:49.106 helix_lsp::transport [ERROR] rust-analyzer err <- "2024-08-24T01:45:49.106669Z ERROR project_model::workspace: cyclic deps: bevy_math(Idx::(307)) -> bevy_math(Idx::(307)), alternative path: bevy_math(Idx::(307))\n"
2024-08-24T09:46:08.669 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(6)), original request likely timed out
2024-08-24T09:46:08.670 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(15)), original request likely timed out
2024-08-24T09:46:08.670 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(16)), original request likely timed out
2024-08-24T09:46:08.880 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(7)), original request likely timed out
2024-08-24T09:46:08.910 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(8)), original request likely timed out
2024-08-24T09:46:09.001 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(9)), original request likely timed out
2024-08-24T09:46:11.663 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(19)), original request likely timed out
Platform
Linux(fedora40)
Terminal Emulator
alacrity/zed terminal/vscode terminal/gnome terminal
Installation Method
dnf install
Helix Version
helix 24.7 (079f544)