From 8b42f6fb481acc2d2e1129ea0fc7dedfe1221e8c Mon Sep 17 00:00:00 2001 From: zztrieuzz Date: Wed, 17 Apr 2024 19:51:26 +0700 Subject: [PATCH] fix fold --- lua/spectre/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/spectre/init.lua b/lua/spectre/init.lua index 3002baf..81ef804 100644 --- a/lua/spectre/init.lua +++ b/lua/spectre/init.lua @@ -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