aboutsummaryrefslogtreecommitdiff
path: root/test/unit/message_spec.lua
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2023-04-02 10:11:42 +0200
committerGitHub <noreply@github.com>2023-04-02 16:11:42 +0800
commitd510bfbc8e447b1a60d5ec7faaa8f440eb4ef56f (patch)
treecfe7dd74ad588e935ea7613fc91c99b819aa99ad /test/unit/message_spec.lua
parent9084948893f9c1669ab56061c8d04adabbb6c3cf (diff)
downloadrneovim-d510bfbc8e447b1a60d5ec7faaa8f440eb4ef56f.tar.gz
rneovim-d510bfbc8e447b1a60d5ec7faaa8f440eb4ef56f.tar.bz2
rneovim-d510bfbc8e447b1a60d5ec7faaa8f440eb4ef56f.zip
refactor: remove char_u (#22829)
Closes https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'test/unit/message_spec.lua')
-rw-r--r--test/unit/message_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/message_spec.lua b/test/unit/message_spec.lua
index 549eff6e03..0d5268d199 100644
--- a/test/unit/message_spec.lua
+++ b/test/unit/message_spec.lua
@@ -12,7 +12,7 @@ describe('trunc_string', function()
local buflen = 40
local function test_inplace(s, expected, room)
room = room and room or 20
- local buf = cimp.xmalloc(ffi.sizeof('char_u') * buflen)
+ local buf = cimp.xmalloc(ffi.sizeof('char') * buflen)
ffi.C.strcpy(buf, s)
cimp.trunc_string(buf, buf, room, buflen)
eq(expected, ffi.string(buf))
@@ -21,7 +21,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 buf = cimp.xmalloc(ffi.sizeof('char') * buflen)
local str = cimp.xstrdup(to_cstr(s))
cimp.trunc_string(str, buf, room, buflen)
eq(expected, ffi.string(buf))