aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/commands
diff options
context:
space:
mode:
authorSkyler Hawthorne2022-08-31 19:08:00 +0000
committerSkyler Hawthorne2022-10-19 02:31:39 +0000
commitaf03df3413f04ce7079d14388ce42fe70bd1397e (patch)
treed23e4e7746c4f5c31ec9709e95798b81beb67252 /helix-term/src/commands
parent18c32118b1df63895b662c1b37ada28ad0d5c9b5 (diff)
fix write scratch buffer to file
Diffstat (limited to 'helix-term/src/commands')
-rw-r--r--helix-term/src/commands/typed.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/helix-term/src/commands/typed.rs b/helix-term/src/commands/typed.rs
index 7fd619d9..d312c45f 100644
--- a/helix-term/src/commands/typed.rs
+++ b/helix-term/src/commands/typed.rs
@@ -273,10 +273,6 @@ fn write_impl(
let doc = doc_mut!(cx.editor);
let path = path.map(AsRef::as_ref);
- if doc.path().is_none() {
- bail!("cannot write a buffer without a filename");
- }
-
let fmt = if editor_auto_fmt {
doc.auto_format().map(|fmt| {
let callback = make_format_callback(