From 65fecf117e5187750e3f633420a4f7cd86dfaad3 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 4 Feb 2009 20:45:11 -0500 Subject: Ignore find text case with case-insensitive find in files; core/ext/find.lua --- core/ext/find.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'core/ext/find.lua') diff --git a/core/ext/find.lua b/core/ext/find.lua index 54cecd68..4938f3af 100644 --- a/core/ext/find.lua +++ b/core/ext/find.lua @@ -85,6 +85,7 @@ function find.find(text, next, flags, nowrap, wrapped) }) if #dir > 0 then if not find.lua then text = text:gsub('([().*+?^$%%[%]-])', '%%%1') end + if not find.match_case then text = text:lower() end if find.whole_word then text = '[^%W_]'..text..'[^%W_]' end local lfs = require 'lfs' local match_case = find.match_case -- cgit v1.2.3