Skip to content

Commit

Permalink
fix fold
Browse files Browse the repository at this point in the history
  • Loading branch information
zztrieuzz committed Apr 17, 2024
1 parent 2b01255 commit 8b42f6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/spectre/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -706,13 +706,13 @@ M.get_fold = function(lnum)
return '0'
end
local line = vim.fn.getline(lnum)
local check = string.find(line, '([^%s]*%:%d*:%d*:)$')
local check = string.find(line, '([^%s]*%:)$')
if check then
return '>1'
end

local nextline = vim.fn.getline(lnum + 1)
local nextcheck = string.find(nextline, '([^%s]*%:%d*:%d*:)$')
local nextcheck = string.find(nextline, '([^%s]*%:)$')
if nextcheck then
return '<1'
end
Expand Down

0 comments on commit 8b42f6f

Please # to comment.