Skip to content

Commit

Permalink
units: Units and constants are case sensitive
Browse files Browse the repository at this point in the history
Do not lookup units and constants in a case-insensitive way.

Signed-off-by: Christophe de Dinechin <christophe@dinechin.org>
  • Loading branch information
c3d committed Mar 2, 2024
1 parent a74414f commit 50c896a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/unit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1175,9 +1175,7 @@ symbol_g unit_file::lookup(utf8 what, size_t len, bool menu, bool seek0)
{
if (column == 0)
{
found = found &&
matching < len &&
tolower(c) == tolower(what[matching++]);
found = found && matching < len && c == what[matching++];
}
else if (column == 1 && found)
{
Expand Down

0 comments on commit 50c896a

Please sign in to comment.