From: handa Date: Fri, 27 Oct 2006 12:15:11 +0000 (+0000) Subject: (get_preceding_char): If POS is zero, always call X-Git-Tag: REL-1-3-4~19 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=58cc6d5f46764d9345759347c79ad31ae498b728;p=m17n%2Fm17n-lib.git (get_preceding_char): If POS is zero, always call get_surrounding_text. --- diff --git a/src/input.c b/src/input.c index 9338c3c..6834bae 100644 --- a/src/input.c +++ b/src/input.c @@ -547,7 +547,7 @@ get_preceding_char (MInputContext *ic, int pos) MText *mt; int len; - if (ic_info->preceding_text) + if (pos && ic_info->preceding_text) { len = mtext_nchars (ic_info->preceding_text); if (pos <= len)