api: When calling get/set_lines from vimL, don't convert between "\n" and "\0".

This commit is contained in:
Björn Linse
2016-06-18 13:45:39 +02:00
parent a2d25b7bf8
commit 87e054bb24
3 changed files with 18 additions and 11 deletions

View File

@@ -7125,7 +7125,7 @@ static void api_wrapper(typval_T *argvars, typval_T *rettv, void *data)
}
Error err = ERROR_INIT;
Object result = fn(-1, -1, args, &err);
Object result = fn(INVALID_CHANNEL, NO_RESPONSE, args, &err);
if (err.set) {
vim_report_error(cstr_as_string(err.msg));