diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-09-06 20:38:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-06 20:38:26 +0200 |
commit | 74a8b5982a27cdccc6505343a9feeba1b3e74e31 (patch) | |
tree | 5e85d41e4115977863908fbcded226169b02ebd8 /test/unit/message_spec.lua | |
parent | 707edfc9e6a1745f268d1a9184183da521dc86b8 (diff) | |
parent | 73207cae611a1efb8cd17139e8228772daeb9866 (diff) | |
download | rneovim-74a8b5982a27cdccc6505343a9feeba1b3e74e31.tar.gz rneovim-74a8b5982a27cdccc6505343a9feeba1b3e74e31.tar.bz2 rneovim-74a8b5982a27cdccc6505343a9feeba1b3e74e31.zip |
Merge pull request #20031 from dundargoc/refactor/char_u/8
refactor: replace char_u with char 8: remove `vim_strsave`
Diffstat (limited to 'test/unit/message_spec.lua')
-rw-r--r-- | test/unit/message_spec.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/message_spec.lua b/test/unit/message_spec.lua index 7e92b5c857..549eff6e03 100644 --- a/test/unit/message_spec.lua +++ b/test/unit/message_spec.lua @@ -22,7 +22,7 @@ describe('trunc_string', function() local function test_copy(s, expected, room) room = room and room or 20 local buf = cimp.xmalloc(ffi.sizeof('char_u') * buflen) - local str = cimp.vim_strsave(to_cstr(s)) + local str = cimp.xstrdup(to_cstr(s)) cimp.trunc_string(str, buf, room, buflen) eq(expected, ffi.string(buf)) cimp.xfree(buf) |