mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 23:24:39 +00:00
Fix for crash while editing multiple lines requested in issue #143
This commit is contained in:
parent
08e78e63cf
commit
57f3df3cab
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue