forked from systemd/systemd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
find_legacy_keymap: fix empty variant matching
We should give a match bonus if the X context variant is empty and the xvariant column in kbd-model-map is "-" (which means none). Currently, we don't, which means that if you call this on a context with layouts bg,us and no variant, you get the console layout bg_pho-utf8 instead of bg_bds-utf8 (because both score the same, and the bg_pho-utf8 row comes first). You should get bg_bds-utf8 in this case. Signed-off-by: Adam Williamson <awilliam@redhat.com>
- Loading branch information
Showing
2 changed files
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters