summaryrefslogtreecommitdiff
path: root/src/buffer_utils.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-05-05 20:23:15 +0100
committerMaxime Coste <frrrwww@gmail.com>2015-05-05 20:23:15 +0100
commit9f1b129053f3f2f957746c7a0a35958da975fb6f (patch)
tree2bfae42a3c8408bfed1f4c533e467effc915432d /src/buffer_utils.cc
parent0ee95d02c45dfa768229dc6bfa3a18e910ca649b (diff)
Fix bug in fifo creation where BufOpenFifo hook was using a dead string
Diffstat (limited to 'src/buffer_utils.cc')
-rw-r--r--src/buffer_utils.cc2
1 files changed, 1 insertions, 1 deletions
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;
}