-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Editing file breaks hard link #11279
Comments
Per Vim: https:/neovim/neovim/blob/4e5c633ed4871a948aff7338b793ac5f93484153/src/nvim/bufwrite.c#L736-L742 The current system is coded such that symbolic links work with backup files, but we should disable it when it's a hardlink in helix/helix-view/src/document.rs Lines 930 to 952 in 86795a9
|
I can add additional check to #11153 |
I will be reading through Vim's write system in full in the near future to see what needs to be changed in Helix. |
Encountered this last Wednesday while teaching. Created a hardlink, I was utterly confused for several seconds... then figured out the reference counters were decreased and resorted to using |
#11340 should fix this |
Summary
After saving the file, the hard link would be broken.
If it is working as intended, is there an option to disable this feature?
Reproduction Steps
I tried this:
touch a
ln a b
hx b
and inserttest
, and save by:x
cat a
I expected this to happen:
cat a
outputstest
.Instead, this happened:
File
a
remains empty, and the hard link betweena
andb
was broken.Helix log
~/.cache/helix/helix.log
Platform
macOS
Terminal Emulator
iterm2 3.5.3
Installation Method
brew
Helix Version
helix 24.7 (079f544)
The text was updated successfully, but these errors were encountered: