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:
ee235f5
)
(get_preceding_char): Fix previous change.
author
handa
<handa>
Tue, 6 Feb 2007 06:07:57 +0000
(06:07 +0000)
committer
handa
<handa>
Tue, 6 Feb 2007 06:07:57 +0000
(06:07 +0000)
src/input.c
patch
|
blob
|
history
diff --git
a/src/input.c
b/src/input.c
index
cf4bad2
..
091e7f5
100644
(file)
--- a/
src/input.c
+++ b/
src/input.c
@@
-552,6
+552,8
@@
get_preceding_char (MInputContext *ic, int pos)
len = mtext_nchars (ic_info->preceding_text);
if (pos <= len)
return mtext_ref_char (ic_info->preceding_text, len - pos);
+ if (ic->produced && mtext_len (ic->produced) >= pos - len)
+ return mtext_ref_char (ic->produced, len + mtext_len (ic->produced) - pos);
}
mt = get_surrounding_text (ic, - pos);
if (! mt)