diff options
author | Marco Hinz <mh.codebro@gmail.com> | 2016-02-26 18:43:32 +0100 |
---|---|---|
committer | Marco Hinz <mh.codebro@gmail.com> | 2016-02-26 18:52:17 +0100 |
commit | b6170db1a1c6cec55b0cd0075b54b8370650aa14 (patch) | |
tree | 8ecd53602988843f49965d7a808fd31f2608a080 /src | |
parent | 23f8696317143da03c3cd3688478b32b6912a351 (diff) | |
download | rneovim-b6170db1a1c6cec55b0cd0075b54b8370650aa14.tar.gz rneovim-b6170db1a1c6cec55b0cd0075b54b8370650aa14.tar.bz2 rneovim-b6170db1a1c6cec55b0cd0075b54b8370650aa14.zip |
Avoid internal errors with setloclist()
All syntastic users experienced this problem:
E685: Internal error: get_tv_string_buf()
It's reproducable with:
:call setloclist(0, [''])
So, not given optional arguments to setloclist() lead to some fields not
inizilied and the code took the wrong branches.
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 31175773f0..982c14cd08 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -15251,7 +15251,7 @@ static void set_qf_ll_list(win_T *wp, typval_T *list_arg, typval_T *action_arg, action = *act; } - if (title_arg->v_type != VAR_UNKNOWN) { + if (title_arg->v_type == VAR_STRING) { title = get_tv_string_chk(title_arg); if (!title) { return; // type error; errmsg already given |