aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/rstream.c
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-10-28 11:04:55 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-10-28 11:04:55 -0300
commit7797991ba50c0d76f7750cb821dca085a1f40c7e (patch)
tree67cdd4270fc25b542841949d2d6aa571b1c51aee /src/nvim/os/rstream.c
parent65942d3a8d84510fcee2dd1c6306a5af13296c84 (diff)
parentc95bc3349b6df13d8a4b5c1c7f3440e4578b266c (diff)
downloadrneovim-7797991ba50c0d76f7750cb821dca085a1f40c7e.tar.gz
rneovim-7797991ba50c0d76f7750cb821dca085a1f40c7e.tar.bz2
rneovim-7797991ba50c0d76f7750cb821dca085a1f40c7e.zip
Merge PR #1354 'Fixes to channel.c, input.c and helpers.lua'
Diffstat (limited to 'src/nvim/os/rstream.c')
-rw-r--r--src/nvim/os/rstream.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/os/rstream.c b/src/nvim/os/rstream.c
index d96b3d931c..beff404fd0 100644
--- a/src/nvim/os/rstream.c
+++ b/src/nvim/os/rstream.c
@@ -396,6 +396,7 @@ static void close_cb(uv_handle_t *handle)
static void rbuffer_relocate(RBuffer *rbuffer)
{
+ assert(rbuffer->rpos <= rbuffer->wpos);
// Move data ...
memmove(
rbuffer->data, // ...to the beginning of the buffer(rpos 0)