summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2021-07-20 22:45:33 +1000
committerMaxime Coste <mawww@kakoune.org>2021-07-20 22:45:33 +1000
commit15aa4fe1379c4cddb2e548bad0c1cd99f7fbf90e (patch)
tree58dff93973069928a90061f977692c810e50ab5f
parent9cf79bfd1ef3ac3131bf6bd7c3f51ed6e874a8cf (diff)
Document the new write behaviour
-rw-r--r--doc/pages/changelog.asciidoc3
-rw-r--r--src/main.cc1
2 files changed, 4 insertions, 0 deletions
diff --git a/doc/pages/changelog.asciidoc b/doc/pages/changelog.asciidoc
index d9f6af2c..f5703646 100644
--- a/doc/pages/changelog.asciidoc
+++ b/doc/pages/changelog.asciidoc
@@ -19,6 +19,9 @@ released versions.
* `write -atomic` was replaced with `write -method [replace|overwrite]` to
make both write methods available explicitly
+* `write <filename>` will fail if the given filename already exists and is
+ a regular file. Use the `-force` switch to override that behaviour.
+
== Kakoune 2020.09.01
* The `repl` and `send-text` aliases have been renamed respectively into
diff --git a/src/main.cc b/src/main.cc
index d04a85a6..2a50b72d 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -45,6 +45,7 @@ struct {
StringView notes;
} constexpr version_notes[] = { {
0,
+ "» {+u}write <filename>{} will refuse to overwrite without {+u}-force{}\n"
"» {+u}$kak_command_fifo{} support\n"
"» {+u}set-option -remove{} support\n"
"» prompts auto select {+i}menu{} completions on space\n"