fix(remote): restore previous --remote-expr output formatting (#23988)

- Use tostring() as that's what print() uses internally.
- Do not append trailing new line.
This commit is contained in:
zeertzjq
2023-06-11 22:12:32 +08:00
committed by GitHub
parent dcb341315a
commit bde59e8147
3 changed files with 7 additions and 8 deletions

View File

@@ -967,7 +967,6 @@ static void remote_request(mparm_T *params, int remote_args, char *server_addr,
os_exit(2);
}
os_msg(rvobj.data.dictionary.items[i].value.data.string.data);
os_msg("\n");
} else if (strequal(rvobj.data.dictionary.items[i].key.data, "tabbed")) {
if (rvobj.data.dictionary.items[i].value.type != kObjectTypeBoolean) {
os_errmsg("vim._cs_remote returned an unexpected type for 'tabbed'\n");