Re-enable undo support on fifo buffers when the fifo closes

Fixes #881
This commit is contained in:
Maxime Coste 2016-10-23 18:22:42 +01:00
parent dcebdd54f3
commit 28db6f04f1

View File

@ -104,7 +104,7 @@ Buffer* create_fifo_buffer(String name, int fd, bool scroll)
kak_assert(buffer->flags() & Buffer::Flags::Fifo);
watcher->close_fd();
buffer->run_hook_in_own_context("BufCloseFifo", "");
buffer->flags() &= ~Buffer::Flags::Fifo;
buffer->flags() &= ~(Buffer::Flags::Fifo | Buffer::Flags::NoUndo);
delete watcher;
};