Patch by Joshua R. Elsasser: (ticket #4650)
* In _InsertGap(), be sure not to set a line's length longer than the space allocated for it. Nice catch, thanks a bunch! git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33317 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
3cafc2ec3e
commit
8560c5b0f7
@ -1352,7 +1352,7 @@ BasicTerminalBuffer::_InsertGap(int32 width)
|
||||
line->cells + fCursor.x, toMove * sizeof(TerminalCell));
|
||||
}
|
||||
|
||||
line->length += width;
|
||||
line->length = min_c(line->length + width, fWidth);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user