summaryrefslogtreecommitdiff
path: root/src/gperf_unfold_key_conv.py
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-06-02 19:35:35 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-06-02 19:35:35 +0200
commit7b8e42400dc780b86479b4f0c713db5d9aa6623b (patch)
treeebe0dd5a09b8bf368b5695b13eb28fe07371afc5 /src/gperf_unfold_key_conv.py
parent0e4c1c1dd3dd4271e54a7305699c303b629fa915 (diff)
parent9c10d3a428f2e33d01e1ea66932d272ac731787f (diff)
Merge tag 'upstream/6.3.0' into feature/upstream
Upstream version 6.3.0
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