migueldeicaza / XtermSharp

XTerm emulator as a .NET library
MIT License
161 stars 34 forks source link

Fixes a crash when reflowing narrower and content needs to be pushed out the "top" of the buffer. #71

Closed sgmunn closed 4 years ago

sgmunn commented 4 years ago

This appears to happen when we are near the end of the buffer (including scrollback) and content needs to be squished and overflows out the top of the buffer. Possible enhancements in the future might be to increase the scrollback and shift the content but this fixes the immediate crash.

XtermSharp.CircularList`1[[XtermSharp.BufferLine, XtermSharp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].set_Item(Int32,BufferLine)
XtermSharp.ReflowNarrower.Rearrange(List`1,Int32)
XtermSharp.ReflowNarrower.Reflow(Int32,Int32,Int32,Int32)
XtermSharp.Buffer.Reflow(Int32,Int32)
XtermSharp.Buffer.Resize(Int32,Int32)
XtermSharp.BufferSet.Resize(Int32,Int32)
XtermSharp.Terminal.Resize(Int32,Int32)