summaryrefslogtreecommitdiff
path: root/src/commands.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-06-04 19:23:11 +0200
committerMaxime Coste <frrrwww@gmail.com>2013-06-06 19:44:07 +0200
commit6b667bc803557de2d83cdc5f562c286bb66f86fa (patch)
treea65118c4fad1bce6fdbfb5b5578d93f19356742c /src/commands.cc
parent777158e86dd284014657e572fd4c49ca947d6812 (diff)
remove BufferIterator conversion to/from BufferCoord
Diffstat (limited to 'src/commands.cc')
-rw-r--r--src/commands.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands.cc b/src/commands.cc
index a2eb08d3..b6c9a1c6 100644
--- a/src/commands.cc
+++ b/src/commands.cc
@@ -60,7 +60,7 @@ 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->end()-1,
+ buffer->insert(buffer->back_coord(),
count > 0 ? String(data, data+count)
: "*** kak: fifo closed ***\n");
ClientManager::instance().redraw_clients();