From d8b7df87cbc0592fcb9ed2cb1f41e24279303ae2 Mon Sep 17 00:00:00 2001 From: Michael Gallo <44709959+Michael-Gallo@users.noreply.github.com> Date: Sun, 10 Dec 2023 23:51:33 -0500 Subject: [PATCH] normalize now properly uses boolean parameters (#1526) --- nav.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nav.go b/nav.go index 6f798aea..c63e8297 100644 --- a/nav.go +++ b/nav.go @@ -197,11 +197,11 @@ func newDir(path string) *dir { } func normalize(s1, s2 string, ignorecase, ignoredia bool) (string, string) { - if gOpts.ignorecase { + if ignorecase { s1 = strings.ToLower(s1) s2 = strings.ToLower(s2) } - if gOpts.ignoredia { + if ignoredia { s1 = removeDiacritics(s1) s2 = removeDiacritics(s2) }