diff options
author | bptato <nincsnevem662@gmail.com> | 2024-07-16 18:09:51 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-07-16 18:09:51 +0200 |
commit | 88a43edc6a915890a1864e912669e258b45a0889 (patch) | |
tree | 21a7b4748941f66b0e7dcc0dfc51f5348ffa3b4b /src/local | |
parent | 6a06e111ebfbb8bbf69f4539863ae2d5d62794f9 (diff) | |
download | chawan-88a43edc6a915890a1864e912669e258b45a0889.tar.gz |
config: support smart case
and enable it by default.
Diffstat (limited to 'src/local')
-rw-r--r-- | src/local/pager.nim | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/local/pager.nim b/src/local/pager.nim index dfa7d014..de990767 100644 --- a/src/local/pager.nim +++ b/src/local/pager.nim @@ -1327,10 +1327,7 @@ proc checkRegex(pager: Pager; regex: Result[Regex, string]): Opt[Regex] = return ok(regex.get) proc compileSearchRegex(pager: Pager; s: string): Result[Regex, string] = - var flags = {LRE_FLAG_UNICODE} - if pager.config.search.ignore_case: - flags.incl(LRE_FLAG_IGNORECASE) - return compileSearchRegex(s, flags) + return compileSearchRegex(s, pager.config.search.ignore_case) proc updateReadLineISearch(pager: Pager; linemode: LineMode) = let lineedit = pager.lineedit |