projects
/
m17n
/
m17n-lib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d62b00e
)
(filter): Fix handling of such symbol as S-A.
author
handa
<handa>
Thu, 5 Jan 2006 12:38:47 +0000
(12:38 +0000)
committer
handa
<handa>
Thu, 5 Jan 2006 12:38:47 +0000
(12:38 +0000)
src/input.c
patch
|
blob
|
history
diff --git
a/src/input.c
b/src/input.c
index
4f1bc0c
..
e5677f6
100644
(file)
--- a/
src/input.c
+++ b/
src/input.c
@@
-2712,7
+2712,8
@@
filter (MInputContext *ic, MSymbol key, void *arg)
msymbol_put (key, M_key_alias, alias);
}
}
- else if (MSYMBOL_NAME (key)[0] == 'S'
+ else if (MSYMBOL_NAMELEN (key) == 3
+ && MSYMBOL_NAME (key)[0] == 'S'
&& MSYMBOL_NAME (key)[1] == '-'
&& MSYMBOL_NAME (key)[2] >= 'A' && MSYMBOL_NAME (key)[2] <= 'Z')
msymbol_put (key, M_key_alias, one_char_symbol[(int)MSYMBOL_NAME (key)[2]]);