diff options
| author | Delapouite <delapouite@gmail.com> | 2019-03-27 19:30:41 +0100 |
|---|---|---|
| committer | Delapouite <delapouite@gmail.com> | 2019-03-27 19:30:41 +0100 |
| commit | 0fe8e59abce104e653d834b667b7e525910d3800 (patch) | |
| tree | 2b2bf7881e5e3a0f0132052899dc8e29afe9209b /src/buffer.cc | |
| parent | 4b98b894375226ddb62bb970312957f9bc5cb5f8 (diff) | |
Add missing flags to debug buffers output
Diffstat (limited to 'src/buffer.cc')
| -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); } |
