Update helix-view/src/document.rs

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
pull/13656/head
StratusFearMe21 2025-06-06 15:46:54 -06:00 committed by GitHub
parent 4d2b7276c8
commit a8a6f33f07
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1915,7 +1915,7 @@ impl Document {
.unwrap_or_else(|| self.config.load().insert_final_newline)
}
/// Whether the document should write it's contents to a backup file, then rename that backup to the target file when saving. This prevents data loss if the editor is interupted while writing the file, but may confuse some file watching/hot reloading programs.
/// Whether the document should write its contents to a backup file, then rename that backup to the target file when saving. This prevents data loss if the editor is interrupted while writing the file, but may confuse some file watching/hot reloading programs.
pub fn atomic_save(&self) -> bool {
self.config.load().atomic_save
}