Add a text in scratch buffer to make it explicit it wont be saved
Fixes #2759
This commit is contained in:
parent
da687f8b7d
commit
f87e844244
|
@ -82,7 +82,9 @@ Buffer& BufferManager::get_buffer(StringView name)
|
||||||
Buffer& BufferManager::get_first_buffer()
|
Buffer& BufferManager::get_first_buffer()
|
||||||
{
|
{
|
||||||
if (all_of(m_buffers, [](auto& b) { return (b->flags() & Buffer::Flags::Debug); }))
|
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();
|
return *m_buffers.back();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user