aboutsummaryrefslogtreecommitdiff
path: root/src/api/vim.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/vim.c')
-rw-r--r--src/api/vim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/vim.c b/src/api/vim.c
index ee3dca30a4..33e5a8ad85 100644
--- a/src/api/vim.c
+++ b/src/api/vim.c
@@ -83,7 +83,7 @@ Object vim_eval(String str, Error *err)
int64_t vim_strwidth(String str)
{
- abort();
+ return mb_string2cells((char_u *)str.data, str.size);
}
StringArray vim_list_runtime_paths(void)