aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/vim.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-10-06 19:40:36 -0700
committerJustin M. Keyes <justinkz@gmail.com>2019-12-01 16:09:24 -0800
commit276c2da28616d7a4f504c328dbb8857d38ab7a4a (patch)
tree31f2d03921e6a44d5c5cc971f04295c53033cc10 /src/nvim/api/vim.c
parent0a8d145075d3ce5fffe2df190992f624ae931809 (diff)
downloadrneovim-276c2da28616d7a4f504c328dbb8857d38ab7a4a.tar.gz
rneovim-276c2da28616d7a4f504c328dbb8857d38ab7a4a.tar.bz2
rneovim-276c2da28616d7a4f504c328dbb8857d38ab7a4a.zip
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
Diffstat (limited to 'src/nvim/api/vim.c')
-rw-r--r--src/nvim/api/vim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/api/vim.c b/src/nvim/api/vim.c
index 95f6de94a4..10ece6bc22 100644
--- a/src/nvim/api/vim.c
+++ b/src/nvim/api/vim.c
@@ -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);
}