зеркало из https://github.com/xamarin/XtermSharp.git
Merge pull request #12 from xamarin/dev/nosami/fix-1733627
Fix selection bugs when terminal has yDisp > 0
This commit is contained in:
Коммит
5deb6c2494
|
@ -130,7 +130,7 @@ namespace XtermSharp {
|
|||
/// </summary>
|
||||
public void SelectAll()
|
||||
{
|
||||
Start = new Point (0, 0);
|
||||
Start = new Point (0, terminal.Buffer.YDisp);
|
||||
End = new Point (terminal.Cols - 1, terminal.Buffer.Lines.MaxLength - 1);
|
||||
|
||||
// set the field to bypass sending this event twice
|
||||
|
@ -243,7 +243,7 @@ namespace XtermSharp {
|
|||
break;
|
||||
}
|
||||
|
||||
if (start.Y < 0 || start.Y > terminal.Buffer.Lines.Length) {
|
||||
if (start.Y < 0 || start.Y > terminal.Buffer.Lines.Length + terminal.Buffer.YDisp) {
|
||||
return Array.Empty<Line> ();
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче