summaryrefslogtreecommitdiff
path: root/src/gperf_unfold_key_conv.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/gperf_unfold_key_conv.py')
-rwxr-xr-xsrc/gperf_unfold_key_conv.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gperf_unfold_key_conv.py b/src/gperf_unfold_key_conv.py
index dcd8587..34f9c2f 100755
--- a/src/gperf_unfold_key_conv.py
+++ b/src/gperf_unfold_key_conv.py
@@ -36,7 +36,7 @@ def parse_line(s):
if r != s: return r
r = re.sub(REG_GET_CODE, 'OnigCodePoint gcode = wordlist[key].code;', s)
if r != s: return r
- r = re.sub(REG_CODE_CHECK, 'if (code == gcode)', s)
+ r = re.sub(REG_CODE_CHECK, 'if (code == gcode && wordlist[key].index >= 0)', s)
if r != s: return r
return s