From f87e844244d5ee81e9c1ceb04c354726002ae760 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 17 Mar 2019 10:41:11 +1100 Subject: [PATCH] Add a text in scratch buffer to make it explicit it wont be saved Fixes #2759 --- src/buffer_manager.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/buffer_manager.cc b/src/buffer_manager.cc index 6b083c55..f0d68206 100644 --- a/src/buffer_manager.cc +++ b/src/buffer_manager.cc @@ -82,7 +82,9 @@ Buffer& BufferManager::get_buffer(StringView name) Buffer& BufferManager::get_first_buffer() { if (all_of(m_buffers, [](auto& b) { return (b->flags() & Buffer::Flags::Debug); })) - create_buffer("*scratch*", Buffer::Flags::None); + create_buffer("*scratch*", Buffer::Flags::None, + "*** this is a *scratch* buffer which wont be automatically saved ***\n" + "*** use it for notes or open a file buffer with the edit command ***\n"); return *m_buffers.back(); }