Browse Source

fixed console output

- \n was missing after command in Debugger ConsolePad
- 1 \n too much in Boo Interpreter output

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5650 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
pull/1/head
Siegfried Pammer 16 years ago
parent
commit
4b0f67416e
  1. 1
      src/AddIns/BackendBindings/Boo/BooBinding/Project/Src/InteractiveInterpreter.cs
  2. 2
      src/AddIns/Debugger/Debugger.AddIn/Pads/ConsolePad.cs
  3. 6
      src/Main/Base/Project/Src/Gui/Pads/AbstractConsolePad.cs

1
src/AddIns/BackendBindings/Boo/BooBinding/Project/Src/InteractiveInterpreter.cs

@ -42,6 +42,7 @@ namespace Grunwald.BooBinding @@ -42,6 +42,7 @@ namespace Grunwald.BooBinding
ProcessCommand(command);
return true;
} else if (!command.Contains("\n") && !command.EndsWith(":")) {
AppendLine("");
ProcessCommand(command);
return true;
} else {

2
src/AddIns/Debugger/Debugger.AddIn/Pads/ConsolePad.cs

@ -40,7 +40,7 @@ namespace ICSharpCode.SharpDevelop.Gui.Pads @@ -40,7 +40,7 @@ namespace ICSharpCode.SharpDevelop.Gui.Pads
if (!string.IsNullOrEmpty(command)) {
string result = Evaluate(command);
if (!string.IsNullOrEmpty(result)) {
Append(result + Environment.NewLine);
Append(Environment.NewLine + result);
}
}
return true;

6
src/Main/Base/Project/Src/Gui/Pads/AbstractConsolePad.cs

@ -160,10 +160,12 @@ namespace ICSharpCode.SharpDevelop.Gui @@ -160,10 +160,12 @@ namespace ICSharpCode.SharpDevelop.Gui
string commandText = console.CommandText;
cleared = false;
if (AcceptCommand(commandText)) {
IDocument document = console.TextEditor.Document;
if (!cleared) {
console.TextEditor.Document.Insert(console.TextEditor.Document.TextLength, Environment.NewLine);
if (document.GetCharAt(document.TextLength - 1) != '\n')
document.Insert(document.TextLength, Environment.NewLine);
AppendPrompt();
console.TextEditor.Select(console.TextEditor.Document.TextLength, 0);
console.TextEditor.Select(document.TextLength, 0);
} else {
console.CommandText = "";
}

Loading…
Cancel
Save