Fix for inability to go backwards through history

This commit is contained in:
ridiculousfish 2012-08-04 16:06:40 -07:00
parent c67702a498
commit 25c6671a87

View File

@ -53,7 +53,10 @@
int parse_util_lineno( const wchar_t *str, size_t offset ) int parse_util_lineno( const wchar_t *str, size_t offset )
{ {
int res = 0; if (! str)
return 0;
int res = 1;
for( size_t i=0; str[i] && i<offset; i++ ) for( size_t i=0; str[i] && i<offset; i++ )
{ {
if( str[i] == L'\n' ) if( str[i] == L'\n' )