From 9f1b129053f3f2f957746c7a0a35958da975fb6f Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 5 May 2015 20:23:15 +0100 Subject: [PATCH] Fix bug in fifo creation where BufOpenFifo hook was using a dead string --- 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 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; }