diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-06-17 10:01:33 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-06-17 12:12:29 -0300 |
commit | 0c764fb1a48ad7ad51766ee480e0cd0d3a43566b (patch) | |
tree | 3ff7784177d0d3db00f3b1a775f4ceee239689b1 /src/nvim/eval.c | |
parent | 063d8a5773b8c0a1a3cac97c7b72c91d560264cf (diff) | |
download | rneovim-0c764fb1a48ad7ad51766ee480e0cd0d3a43566b.tar.gz rneovim-0c764fb1a48ad7ad51766ee480e0cd0d3a43566b.tar.bz2 rneovim-0c764fb1a48ad7ad51766ee480e0cd0d3a43566b.zip |
wstream: Change wstream_write failure behavior
Before this change, any write that could cause a WStream instance to use more
than `maxmem` would fail, which is not acceptable when writing big chunks of
data. (This could happen when returning contents from a big buffer through the
API, for example).
Writes of any size are now allowed, but before we check if the currently used
memory doesn't break the limit. This should be enough to prevent us from
stacking data when talking to a locked process.
Diffstat (limited to 'src/nvim/eval.c')
0 files changed, 0 insertions, 0 deletions