commit 145520a71dc40c1aca040b467f3831bc2b9c9d78
Author: Joshua R. Elsasser <joshua@elsasser.org>
Date: Sat Sep 26 21:13:51 2009 +0000
In _InsertGap(), be sure not to set a line's length longer than the space allocated for it.
diff --git a/src/apps/terminal/BasicTerminalBuffer.cpp b/src/apps/terminal/BasicTerminalBuffer.cpp
index 6470031..41f85fa 100644
a
|
b
|
BasicTerminalBuffer::_InsertGap(int32 width)
|
1352 | 1352 | line->cells + fCursor.x, toMove * sizeof(TerminalCell)); |
1353 | 1353 | } |
1354 | 1354 | |
1355 | | line->length += width; |
| 1355 | line->length = min_c(line->length + width, fWidth); |
1356 | 1356 | } |
1357 | 1357 | |
1358 | 1358 | |