зеркало из https://github.com/xamarin/XtermSharp.git
Merge pull request #11 from xamarin/dev/nosami/fix-1655076
Fix out of bounds when narrowing wide chars
This commit is contained in:
Коммит
d955e9edca
|
@ -41,6 +41,10 @@ namespace XtermSharp {
|
|||
|
||||
int lastLineLength = wrappedLines [wrappedLines.Count - 1].GetTrimmedLength ();
|
||||
int [] destLineLengths = GetNewLineLengths (wrappedLines, oldCols, newCols);
|
||||
|
||||
if (destLineLengths.Length == 0)
|
||||
continue;
|
||||
|
||||
int linesToAdd = destLineLengths.Length - wrappedLines.Count;
|
||||
|
||||
int trimmedLines;
|
||||
|
|
Загрузка…
Ссылка в новой задаче