From 28db6f04f1c348289f495dee493efb486b40cf33 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 23 Oct 2016 18:22:42 +0100 Subject: [PATCH] Re-enable undo support on fifo buffers when the fifo closes Fixes #881 --- src/buffer_utils.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/buffer_utils.cc b/src/buffer_utils.cc index c238cc45..d26249c9 100644 --- a/src/buffer_utils.cc +++ b/src/buffer_utils.cc @@ -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; };