API: nvim_source: fix multiline input

- DOCMD_REPEAT is needed to source all lines of input.
- Fix ":verbose set {option}?" by handling SID_STR in get_scriptname().

closes #8722
This commit is contained in:
Justin M. Keyes
2019-10-06 19:40:36 -07:00
parent 0a8d145075
commit 276c2da286
3 changed files with 86 additions and 63 deletions

View File

@@ -77,7 +77,7 @@ void nvim_source(String command, Error *err)
FUNC_API_SINCE(7)
{
try_start();
do_source_str((char_u *)command.data);
do_source_str(command.data);
try_end(err);
}