Fix for crash while editing multiple lines requested in issue #143

This commit is contained in:
Siteshwar Vashisht 2012-06-21 21:05:14 +05:30
parent 08e78e63cf
commit 57f3df3cab

View file

@ -161,7 +161,7 @@ int parse_util_get_offset_from_line( const wcstring &str, int line )
count++; count++;
if( count == line ) if( count == line )
{ {
return i+1; return (i+1)<str.size()?i+1:i;
} }
} }