diff options
| author | TJ DeVries <devries.timothyj@gmail.com> | 2020-08-31 22:23:12 -0400 |
|---|---|---|
| committer | TJ DeVries <devries.timothyj@gmail.com> | 2020-08-31 22:23:12 -0400 |
| commit | 51ed9c3e98541a0e85120ea322acfe9abdfcfa02 (patch) | |
| tree | 01026b4a051a9a64a3ab676b35740d0b29869411 /lua/telescope/utils.lua | |
| parent | 8cf3952f27a3f7895100ff547cf1c8cdfeee72f7 (diff) | |
Add some WIP stuff
Diffstat (limited to 'lua/telescope/utils.lua')
| -rw-r--r-- | lua/telescope/utils.lua | 2 |
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 |
