summaryrefslogtreecommitdiff
path: root/lua/telescope/utils.lua
diff options
context:
space:
mode:
authorTJ DeVries <devries.timothyj@gmail.com>2020-08-31 22:23:12 -0400
committerTJ DeVries <devries.timothyj@gmail.com>2020-08-31 22:23:12 -0400
commit51ed9c3e98541a0e85120ea322acfe9abdfcfa02 (patch)
tree01026b4a051a9a64a3ab676b35740d0b29869411 /lua/telescope/utils.lua
parent8cf3952f27a3f7895100ff547cf1c8cdfeee72f7 (diff)
Add some WIP stuff
Diffstat (limited to 'lua/telescope/utils.lua')
-rw-r--r--lua/telescope/utils.lua2
1 files changed, 1 insertions, 1 deletions
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