diff --git a/src/commands.cc b/src/commands.cc index 90dfa394..d838090f 100644 --- a/src/commands.cc +++ b/src/commands.cc @@ -245,8 +245,8 @@ Buffer* open_fifo(const String& name , const String& filename, Context& context) ); EventManager::instance().watch(fd, [buffer, &context](int fd) { - char data[512]; - ssize_t count = read(fd, data, 512); + char data[4096]; + ssize_t count = read(fd, data, 4096); buffer->insert(buffer->end()-1, count > 0 ? String(data, data+count) : "*** kak: fifo closed ***\n");