summaryrefslogtreecommitdiff
path: root/lua/telescope/utils.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/telescope/utils.lua')
-rw-r--r--lua/telescope/utils.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/telescope/utils.lua b/lua/telescope/utils.lua
index 9cfc23c..188c1ea 100644
--- a/lua/telescope/utils.lua
+++ b/lua/telescope/utils.lua
@@ -203,7 +203,7 @@ function utils.get_os_command_output(cmd)
end
utils.strdisplaywidth = (function()
- if jit then
+ if jit and pathlib.separator ~= '\\' then
local ffi = require('ffi')
ffi.cdef[[
typedef unsigned char char_u;
@@ -224,7 +224,7 @@ utils.strdisplaywidth = (function()
end)()
utils.utf_ptr2len = (function()
- if jit then
+ if jit and pathlib.separator ~= '\\' then
local ffi = require('ffi')
ffi.cdef[[
typedef unsigned char char_u;