summaryrefslogtreecommitdiff
path: root/src/gperf_unfold_key_conv.py
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-07-15 14:08:40 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-07-15 14:08:40 +0200
commit66e0fdd5369bd804e9147e32a1a043559f2b5e9d (patch)
tree2553375acc15cf83e0d773858493d758f62212ef /src/gperf_unfold_key_conv.py
parent0e4c1c1dd3dd4271e54a7305699c303b629fa915 (diff)
parent9b2a64e0f1cd115b0091c2b57ad938ec0f7bab4d (diff)
Merge branch 'release/debian/6.3.0-1'debian/6.3.0-1
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