mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-21 19:41:14 -03:00
Fix for crash while editing multiple lines requested in issue #143
This commit is contained in:
@@ -161,7 +161,7 @@ int parse_util_get_offset_from_line( const wcstring &str, int line )
|
||||
count++;
|
||||
if( count == line )
|
||||
{
|
||||
return i+1;
|
||||
return (i+1)<str.size()?i+1:i;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user