mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-19 17:31:44 +03:00
Add [scratch] indicator in context info
This commit is contained in:
parent
9bd9fecb53
commit
98fcf8a497
@ -130,10 +130,12 @@ String generate_context_info(const Context& context)
|
|||||||
s += "[+]";
|
s += "[+]";
|
||||||
if (context.client().input_handler().is_recording())
|
if (context.client().input_handler().is_recording())
|
||||||
s += format("[recording ({})]", context.client().input_handler().recording_reg());
|
s += format("[recording ({})]", context.client().input_handler().recording_reg());
|
||||||
if (context.buffer().flags() & Buffer::Flags::New)
|
|
||||||
s += "[new file]";
|
|
||||||
if (context.hooks_disabled())
|
if (context.hooks_disabled())
|
||||||
s += "[no-hooks]";
|
s += "[no-hooks]";
|
||||||
|
if (not(context.buffer().flags() & (Buffer::Flags::File | Buffer::Flags::Debug)))
|
||||||
|
s += "[scratch]";
|
||||||
|
if (context.buffer().flags() & Buffer::Flags::New)
|
||||||
|
s += "[new file]";
|
||||||
if (context.buffer().flags() & Buffer::Flags::Fifo)
|
if (context.buffer().flags() & Buffer::Flags::Fifo)
|
||||||
s += "[fifo]";
|
s += "[fifo]";
|
||||||
if (context.buffer().flags() & Buffer::Flags::Debug)
|
if (context.buffer().flags() & Buffer::Flags::Debug)
|
||||||
|
Loading…
Reference in New Issue
Block a user