projects
/
m17n
/
m17n-lib-cs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
*** empty log message ***
[m17n/m17n-lib-cs.git]
/
MInputMethod.cs
diff --git
a/MInputMethod.cs
b/MInputMethod.cs
index
da10788
..
a0a1e76
100644
(file)
--- a/
MInputMethod.cs
+++ b/
MInputMethod.cs
@@
-559,7
+559,10
@@
namespace M17N.Input
}
public virtual int CharAt (Context ic)
{
- return ic.preedit[Position (ic)];
+ int pos = Position (ic);
+
+ return ((pos >= 0 && pos < ic.preedit.Length) ? ic.preedit[pos]
+ : -1);
}
public override string ToString ()