mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-23 00:16:42 +08:00
Fix for crash while editing multiple lines requested in issue #143
This commit is contained in:
parent
08e78e63cf
commit
57f3df3cab
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user