commit | 3445320839a38b3b0c253513b125da8298ec27d6 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Jan 31 13:08:38 2021 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Jan 31 13:08:38 2021 +0100 |
tree | 36de5f4e0a019c497710a3cfd6908a5fed0feed4 | |
parent | f2b26bcf8f498fed72759af4aa768fb2aab3118c [diff] [blame] |
patch 8.2.2435: setline() gives an error for some types Problem: setline() gives an error for some types. Solution: Allow any type, convert each item to a string.
diff --git a/src/vim9execute.c b/src/vim9execute.c index bcdc5d1..8a5708c 100644 --- a/src/vim9execute.c +++ b/src/vim9execute.c
@@ -879,7 +879,7 @@ return FAIL; } } - str = typval_tostring(tv); + str = typval_tostring(tv, TRUE); clear_tv(tv); tv->v_type = VAR_STRING; tv->vval.v_string = str;