projects
/
m17n
/
m17n-lib-cs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bee56ed
)
*** empty log message ***
author
handa
<handa>
Tue, 20 Oct 2009 11:37:52 +0000
(11:37 +0000)
committer
handa
<handa>
Tue, 20 Oct 2009 11:37:52 +0000
(11:37 +0000)
MInputMethod.cs
patch
|
blob
|
history
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 ()