From 58cc6d5f46764d9345759347c79ad31ae498b728 Mon Sep 17 00:00:00 2001 From: handa Date: Fri, 27 Oct 2006 12:15:11 +0000 Subject: [PATCH] (get_preceding_char): If POS is zero, always call get_surrounding_text. --- src/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 1.7.10.4