hotfix: displayer showing now items on windows (#515)
No longer use ffi for strdisplaywidth and utf_ptr2len on windows. That might lead to wrong truncations on windows but its better than nothing.
This commit is contained in:
committed by
GitHub
parent
b3d3d93869
commit
993e383dd5
@@ -203,7 +203,7 @@ function utils.get_os_command_output(cmd)
|
|||||||
end
|
end
|
||||||
|
|
||||||
utils.strdisplaywidth = (function()
|
utils.strdisplaywidth = (function()
|
||||||
if jit then
|
if jit and pathlib.separator ~= '\\' then
|
||||||
local ffi = require('ffi')
|
local ffi = require('ffi')
|
||||||
ffi.cdef[[
|
ffi.cdef[[
|
||||||
typedef unsigned char char_u;
|
typedef unsigned char char_u;
|
||||||
@@ -224,7 +224,7 @@ utils.strdisplaywidth = (function()
|
|||||||
end)()
|
end)()
|
||||||
|
|
||||||
utils.utf_ptr2len = (function()
|
utils.utf_ptr2len = (function()
|
||||||
if jit then
|
if jit and pathlib.separator ~= '\\' then
|
||||||
local ffi = require('ffi')
|
local ffi = require('ffi')
|
||||||
ffi.cdef[[
|
ffi.cdef[[
|
||||||
typedef unsigned char char_u;
|
typedef unsigned char char_u;
|
||||||
|
|||||||
Reference in New Issue
Block a user