Fix bug in fifo creation where BufOpenFifo hook was using a dead string
This commit is contained in:
parent
0ee95d02c4
commit
9f1b129053
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user