diff options
| author | Maxime Coste <mawww@kakoune.org> | 2019-04-01 21:13:51 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2019-04-01 21:13:51 +1100 |
| commit | e0013844f86d8578da2df0506eb99bcd46607487 (patch) | |
| tree | d43cb139baf7008f5f8422dce716ec32bddfd9ae /src | |
| parent | 2c283d46a5deae76b777c38489c44894a58d7e1a (diff) | |
| parent | 0fe8e59abce104e653d834b667b7e525910d3800 (diff) | |
Merge remote-tracking branch 'Delapouite/debug-buffers-flags'
Diffstat (limited to 'src')
| -rw-r--r-- | src/buffer.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/buffer.cc b/src/buffer.cc index 40b07eb6..238c3bc7 100644 --- a/src/buffer.cc +++ b/src/buffer.cc @@ -719,12 +719,16 @@ String Buffer::debug_description() const return sizeof(history) + history.undo_group.size() * sizeof(Modification) + s; }) + m_changes.size() * sizeof(Change); - return format("{}\nFlags: {}{}{}{}\nUsed mem: content={} additional={}\n", + return format("{}\nFlags: {}{}{}{}{}{}{}{}\nUsed mem: content={} additional={}\n", display_name(), (m_flags & Flags::File) ? "File (" + name() + ") " : "", (m_flags & Flags::New) ? "New " : "", (m_flags & Flags::Fifo) ? "Fifo " : "", (m_flags & Flags::NoUndo) ? "NoUndo " : "", + (m_flags & Flags::NoHooks) ? "NoHooks " : "", + (m_flags & Flags::Debug) ? "Debug " : "", + (m_flags & Flags::ReadOnly) ? "ReadOnly " : "", + is_modified() ? "Modified " : "", content_size, additional_size); } |
