diff --git a/ShiftOS.Frontend/Apps/Terminal.cs b/ShiftOS.Frontend/Apps/Terminal.cs index a99585c..aea246e 100644 --- a/ShiftOS.Frontend/Apps/Terminal.cs +++ b/ShiftOS.Frontend/Apps/Terminal.cs @@ -167,6 +167,12 @@ namespace ShiftOS.Frontend.Apps int line = GetCurrentLine(); for (int l = 0; l < line; l++) { + if (string.IsNullOrEmpty(Lines[l])) + { + vertMeasure += LoadedSkin.TerminalFont.Height; + continue; + } + lineindex += Lines[l].Length; var stringMeasure = gfx.SmartMeasureString(Lines[l] == "\r" ? " " : Lines[l], LoadedSkin.TerminalFont, Width - 4); vertMeasure += (int)stringMeasure.Height;