summaryrefslogtreecommitdiff
path: root/src/buffer_manager.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2024-06-05 19:49:35 +1000
committerMaxime Coste <mawww@kakoune.org>2024-06-05 19:49:35 +1000
commit51ec633718b5d31853110fd08e971eafa6ecb603 (patch)
treed712aa397604cd368a4de478dc4e2290cfcb3723 /src/buffer_manager.cc
parent727d2391c7695056ce6bb170b127c6e6ca9e1ab4 (diff)
Echo an information message about *scratch* buffer and leave it empty
Having to manually clear the scratch was never really nice and hopefully this will be less annoying and as helpful to newcomers.
Diffstat (limited to 'src/buffer_manager.cc')
-rw-r--r--src/buffer_manager.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/buffer_manager.cc b/src/buffer_manager.cc
index 35f0fcde..8d2820b2 100644
--- a/src/buffer_manager.cc
+++ b/src/buffer_manager.cc
@@ -101,9 +101,7 @@ Buffer& BufferManager::get_buffer_matching(const Regex& regex)
Buffer& BufferManager::get_first_buffer()
{
if (all_of(m_buffers, [](auto& b) { return (b->flags() & Buffer::Flags::Debug); }))
- create_buffer("*scratch*", Buffer::Flags::None,
- {StringData::create("*** this is a *scratch* buffer which won't be automatically saved ***\n"),
- StringData::create("*** use it for notes or open a file buffer with the :edit command ***\n")},
+ create_buffer("*scratch*", Buffer::Flags::None, {StringData::create("\n")},
ByteOrderMark::None, EolFormat::Lf, {InvalidTime, {}, {}});
return *m_buffers.back();