diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-08-04 23:02:40 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-08-04 23:02:40 +0100 |
| commit | e7b4217762c3d75057c491ebda9ce89222fdc33a (patch) | |
| tree | 49fc1f9742876aa9158fb27805a4d8e74d24d1db /src/buffer_utils.cc | |
| parent | 6827662b279f90abe364ba99dd2c41a20919c915 (diff) | |
Support flags getting modified by hooks at buffer creation
Fixes #361
Diffstat (limited to 'src/buffer_utils.cc')
| -rw-r--r-- | src/buffer_utils.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/buffer_utils.cc b/src/buffer_utils.cc index 9f8f8860..c6795fe1 100644 --- a/src/buffer_utils.cc +++ b/src/buffer_utils.cc @@ -119,6 +119,8 @@ Buffer* create_fifo_buffer(String name, int fd, bool scroll) if (mode != EventMode::Normal) return; + kak_assert(buffer->flags() & Buffer::Flags::Fifo); + constexpr size_t buffer_size = 2048; // if we read data slower than it arrives in the fifo, limiting the // iteration number allows us to go back go back to the event loop and |
