diff --git a/src/buffer_utils.cc b/src/buffer_utils.cc index 76884cda..6e84a4f1 100644 --- a/src/buffer_utils.cc +++ b/src/buffer_utils.cc @@ -161,7 +161,7 @@ Buffer* create_fifo_buffer(String name, int fd, bool scroll) buffer->values()[fifo_watcher_id] = Value(std::move(watcher)); buffer->flags() = Buffer::Flags::Fifo | Buffer::Flags::NoUndo; - buffer->run_hook_in_own_context("BufOpenFifo", name); + buffer->run_hook_in_own_context("BufOpenFifo", buffer->name()); return buffer; }