Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Commit

Permalink
Check if line is not binds category
Browse files Browse the repository at this point in the history
Could probably be improved by checking array size in makeBind function
  • Loading branch information
sbatial committed Jun 24, 2023
1 parent ac5bb50 commit 6610924
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reader/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func ReadHyprlandConfig(flags config.Flags) (*ConfigValues, error) {
}
}
switch {
case strings.HasPrefix(line, "bind"):
case strings.HasPrefix(line, "bind") && !strings.HasPrefix(line, "binds"):
if flags.Binds {
binds = append(binds, makeBind(line, flags))
}
Expand Down

0 comments on commit 6610924

Please sign in to comment.