aboutsummaryrefslogtreecommitdiffhomepage
path: root/parse_util.c
diff options
context:
space:
mode:
authorGravatar liljencrantz <liljencrantz@gmail.com>2007-09-22 00:23:01 +1000
committerGravatar liljencrantz <liljencrantz@gmail.com>2007-09-22 00:23:01 +1000
commit624878d35fa8a4cdc0ee44cdeb6057e1c8bcbefb (patch)
tree7d84c739af6b62fa5b3cdd5d639cd68aea5280e6 /parse_util.c
parent23755783103bc9a59392025b1f0feae8e8931a96 (diff)
Minor bug correction in new cursor movement code.
darcs-hash:20070921142301-75c98-7fc9bbdf1591e0fc24a562e69bf483845a160df5.gz
Diffstat (limited to 'parse_util.c')
-rw-r--r--parse_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse_util.c b/parse_util.c
index 8635bc4d..78c49711 100644
--- a/parse_util.c
+++ b/parse_util.c
@@ -208,7 +208,7 @@ int parse_util_get_offset( wchar_t *buff, int line, int line_offset )
if( off2 < 0 )
{
- off2 = wcslen( buff );
+ off2 = wcslen( buff )+1;
}
if( line_offset2 < 0 )