diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2013-06-06 19:39:53 +0200 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2013-06-06 19:44:08 +0200 |
| commit | 2a74b0e9e23e927121908ef534393ffd1b80e8ca (patch) | |
| tree | 5a7f99c72ff80ed959eb4264f58aaf451d39f7f0 /src/commands.cc | |
| parent | cf454ef904a93185c3e5318bc7b5c1d3d08fea39 (diff) | |
Buffer: insert and erase go back to taking iterators, and return iterators
Diffstat (limited to 'src/commands.cc')
| -rw-r--r-- | src/commands.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/commands.cc b/src/commands.cc index b46b1b63..4e62a65f 100644 --- a/src/commands.cc +++ b/src/commands.cc @@ -60,9 +60,8 @@ Buffer* open_fifo(const String& name , const String& filename, Context& context) constexpr size_t buffer_size = 1024 * 16; char data[buffer_size]; ssize_t count = read(watcher.fd(), data, buffer_size); - buffer->insert(buffer->back_coord(), - count > 0 ? String(data, data+count) - : "*** kak: fifo closed ***\n"); + buffer->insert(buffer->end()-1, count > 0 ? String(data, data+count) + : "*** kak: fifo closed ***\n"); ClientManager::instance().redraw_clients(); if (count <= 0) { |
