mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-09 03:51:20 -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++;
|
count++;
|
||||||
if( count == line )
|
if( count == line )
|
||||||
{
|
{
|
||||||
return i+1;
|
return (i+1)<str.size()?i+1:i;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user