Skip to content

Commit

Permalink
Revert "fix: display_tick not available on windows"
Browse files Browse the repository at this point in the history
This reverts commit f21566f.
Fixed in neovim by neovim/neovim#22756.
  • Loading branch information
luukvbaal committed Mar 23, 2023
1 parent d596a78 commit b3d6490
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lua/statuscol.lua
Original file line number Diff line number Diff line change
Expand Up @@ -142,14 +142,15 @@ local function get_statuscol_string()
if signsegmentcount > 0 then
-- Retrieve signs for the entire buffer and store in "signsegments"
-- by line number. Only do this if a "signs" segment was configured.
local signs = f.sign_getplaced(buf, { group = "*" })[1].signs
local signcount = #signs
for i = 1, signsegmentcount do
local ss = signsegments[i]
ss.width = 0
ss.signs = {}
end
local signs = f.sign_getplaced(buf, { group = "*" })[1].signs
for i = 1, #signs do
local s = signs[i]
for j = 1, signcount do
local s = signs[j]
if not sign_cache[s.name] then update_sign_defined() end
local sign = sign_cache[s.name]
if not sign.segment then goto nextsign end
Expand Down Expand Up @@ -189,7 +190,6 @@ function M.setup(user)
builtin = require("statuscol.builtin")
error = ffi.new("Error")
C = ffi.C
if jit.os == "Windows" then C.display_tick = math.huge end

cfg.clickhandlers = {
Lnum = builtin.lnum_click,
Expand Down

0 comments on commit b3d6490

Please sign in to comment.