projects
/
platform
/
upstream
/
libxkbcommon.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
parser: change deprecated `%pure-parser` to `%define api.pure` (#370)
[platform/upstream/libxkbcommon.git]
/
src
/
text.c
diff --git
a/src/text.c
b/src/text.c
index
60edb03
..
290a5ae
100644
(file)
--- a/
src/text.c
+++ b/
src/text.c
@@
-216,6
+216,9
@@
ModIndexText(struct xkb_context *ctx, const struct xkb_mod_set *mods,
if (ndx == XKB_MOD_INVALID)
return "none";
+ if (ndx == XKB_MOD_NONE)
+ return "None";
+
if (ndx >= mods->num_mods)
return NULL;