Problem: No test for collapsing buffers for a channel. Some text is lost.
Solution: Add a simple test. Set rq_buflen correctly.
p += n->rq_buflen;
vim_free(n->rq_buffer);
}
+ node->rq_buflen = (long_u)(p - newbuf);
/* dispose of the collapsed nodes and their buffers */
for (n = node->rq_next; n != last_node; )
call assert_equal("this", ch_readraw(handle))
call assert_equal("AND this", ch_readraw(handle))
+ call ch_sendraw(handle, "split this line\n")
+ call assert_equal("this linethis linethis line", ch_readraw(handle))
+
let reply = ch_evalraw(handle, "quit\n")
call assert_equal("Goodbye!", reply)
finally
from __future__ import print_function
import sys
+import time
if __name__ == "__main__":
if typed.startswith("double "):
print(typed[7:-1] + "\nAND " + typed[7:-1])
sys.stdout.flush()
+ if typed.startswith("split "):
+ print(typed[6:-1], end='')
+ sys.stdout.flush()
+ time.sleep(0.05)
+ print(typed[6:-1], end='')
+ sys.stdout.flush()
+ time.sleep(0.05)
+ print(typed[6:-1])
+ sys.stdout.flush()
if typed.startswith("echoerr "):
print(typed[8:-1], file=sys.stderr)
sys.stderr.flush()
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1902,
/**/
1901,
/**/