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:
9ac170f
)
(get_preceding_char): If POS is zero, always call
author
handa
<handa>
Fri, 27 Oct 2006 12:15:11 +0000
(12:15 +0000)
committer
handa
<handa>
Fri, 27 Oct 2006 12:15:11 +0000
(12:15 +0000)
get_surrounding_text.
src/input.c
patch
|
blob
|
history
diff --git
a/src/input.c
b/src/input.c
index
9338c3c
..
6834bae
100644
(file)
--- 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)