From c6a9e1bbe43e0ea101fc4fa6ccff4f36e9bef7ed Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Fri, 3 Feb 2017 00:47:41 -0800 Subject: [PATCH] [Help] Account for special situation with pause --- SabreTools.Helper/Help/Help.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/SabreTools.Helper/Help/Help.cs b/SabreTools.Helper/Help/Help.cs index d8c457bf..add14f63 100644 --- a/SabreTools.Helper/Help/Help.cs +++ b/SabreTools.Helper/Help/Help.cs @@ -259,13 +259,15 @@ namespace SabreTools.Helper.Help { // Now output based on the size of the screen int i = 0; - foreach (string help in helptext) + for (int line = 0; line < helptext.Count; line++) { + string help = helptext[line]; + Console.WriteLine(help); i++; // If we're not being redirected and we reached the size of the screen, pause - if (i == Console.WindowHeight - 3) + if (i == Console.WindowHeight - 3 && line != helptext.Count - 1) { i = 0; Pause();