diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2012-01-31 14:03:10 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2012-01-31 14:03:10 +0000 |
| commit | 3ef9895a97dab74628577d867a651ede4386af7e (patch) | |
| tree | 4e8674492f8f2e85cc8d2cc87288714f1b623538 /src/buffer.cc | |
| parent | 830d96f7a161e536469c4158bddcb771c13af607 (diff) | |
Buffer: support creation of temporary windows to apply commands when no windows are in context
Diffstat (limited to 'src/buffer.cc')
| -rw-r--r-- | src/buffer.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/buffer.cc b/src/buffer.cc index d5cb762c..f7f7ff55 100644 --- a/src/buffer.cc +++ b/src/buffer.cc @@ -243,6 +243,11 @@ void Buffer::delete_window(Window* window) m_windows.erase(window_it); } +std::unique_ptr<Window> Buffer::create_temporary_window() +{ + return std::unique_ptr<Window>(new Window(*this)); +} + bool Buffer::is_modified() const { size_t history_cursor_index = m_history_cursor - m_history.begin(); |
