From 51ed9c3e98541a0e85120ea322acfe9abdfcfa02 Mon Sep 17 00:00:00 2001 From: TJ DeVries Date: Mon, 31 Aug 2020 22:23:12 -0400 Subject: Add some WIP stuff --- lua/telescope/utils.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua/telescope/utils.lua') diff --git a/lua/telescope/utils.lua b/lua/telescope/utils.lua index 2533c12..cd1c20c 100644 --- a/lua/telescope/utils.lua +++ b/lua/telescope/utils.lua @@ -96,7 +96,7 @@ utils.path_shorten = (function() ]] return function(path) - local c_str = ffi.new("char[?]", #path) + local c_str = ffi.new("char[?]", #path + 1) ffi.copy(c_str, path) return ffi.string(ffi.C.shorten_dir(c_str)) end -- cgit v1.2.3