From fee4cb09757cb7d7944d285cd7536ba2cef4f174 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 2 Dec 2025 23:37:53 +0530 Subject: [PATCH] fix warning from linter --- tools/tui/loop/key-encoding.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/tui/loop/key-encoding.go b/tools/tui/loop/key-encoding.go index 11029f65f..42ae94249 100644 --- a/tools/tui/loop/key-encoding.go +++ b/tools/tui/loop/key-encoding.go @@ -318,7 +318,7 @@ func (self *KeyEvent) MatchesCaseInsensitiveTextOrKey(spec string) bool { if self.MatchesParsedShortcut(ParseShortcut(spec), PRESS|REPEAT) { return true } - return strings.ToLower(self.Text) == strings.ToLower(spec) + return strings.EqualFold(self.Text, spec) } func (self *KeyEvent) MatchesRelease(spec string) bool {