diff options
author | Josh Rahm <rahm@google.com> | 2022-09-12 10:57:59 -0600 |
---|---|---|
committer | Josh Rahm <rahm@google.com> | 2022-09-12 10:57:59 -0600 |
commit | 040b05d7d01defe16e4b31a6fd9c863fd2443091 (patch) | |
tree | 5e4a295fe310c73dfc2fe196708c49b4c0b41396 /test/unit/message_spec.lua | |
parent | 52ce04a002a882da19bb2c78d1fd8eb4825d669d (diff) | |
parent | fd70e2bff2440181f63fe124738cf2a025d1e6a5 (diff) | |
download | rneovim-040b05d7d01defe16e4b31a6fd9c863fd2443091.tar.gz rneovim-040b05d7d01defe16e4b31a6fd9c863fd2443091.tar.bz2 rneovim-040b05d7d01defe16e4b31a6fd9c863fd2443091.zip |
Merge remote-tracking branch 'upstream/master' into floattitle
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) |