summaryrefslogtreecommitdiff
path: root/helix-term/tests/test/commands.rs
diff options
context:
space:
mode:
authorClément Delafargue2023-02-08 16:09:19 +0000
committerGitHub2023-02-08 16:09:19 +0000
commitf386ff795d4833cce02d57de921999284aadded3 (patch)
tree363078f7197e71ffc1aeedc27919e1076957a4f1 /helix-term/tests/test/commands.rs
parent00ecc556a8d3f7efe115f3d826c916ffacf6ab2e (diff)
Check for external file modifications when writing (#5805)
`:write` and other file-saving commands now check the file modification time before writing to protect against overwriting external changes. Co-authored-by: Gustavo Noronha Silva <gustavo@noronha.dev.br> Co-authored-by: LeoniePhiline <22329650+LeoniePhiline@users.noreply.github.com> Co-authored-by: Pascal Kuthe <pascal.kuthe@semimod.de>
Diffstat (limited to 'helix-term/tests/test/commands.rs')
-rw-r--r--helix-term/tests/test/commands.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/tests/test/commands.rs b/helix-term/tests/test/commands.rs
index da2e020e..2ca9e395 100644
--- a/helix-term/tests/test/commands.rs
+++ b/helix-term/tests/test/commands.rs
@@ -67,7 +67,7 @@ async fn test_buffer_close_concurrent() -> anyhow::Result<()> {
const RANGE: RangeInclusive<i32> = 1..=1000;
for i in RANGE {
- let cmd = format!("%c{}<esc>:w<ret>", i);
+ let cmd = format!("%c{}<esc>:w!<ret>", i);
command.push_str(&cmd);
}