Skip to content

Commit

Permalink
JBIDE-21931: Fixed editor shortcuts in Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Mar 21, 2016
1 parent 91fc372 commit 181b501
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,8 @@ public ForgeTextViewer createTextViewer(Composite parent) {

@Override
public IAction[] createActions() {
return new IAction[] {
new StartAction(getRuntime()),
new StopAction(getRuntime()),
new GoToAction(getRuntime()),
new ClearAction(getRuntime()),
new LinkAction(getRuntime()) };
return new IAction[] { new StartAction(getRuntime()), new StopAction(getRuntime()),
new GoToAction(getRuntime()), new ClearAction(getRuntime()), new LinkAction(getRuntime()) };
}

@Override
Expand All @@ -69,14 +65,14 @@ public Resource<?> getCurrentResource() {
public void goToPath(String path) {
Console console = getConsole();
if (console != null)
console.sendInput("cd " + path.replaceAll(" ", "\\ ") + " \n");
console.sendInput("cd " + path.replaceAll(" ", "\\ ") + " " + System.lineSeparator());
}

@Override
public void clear() {
Console console = getConsole();
if (console != null)
console.sendInput("clear\n");
console.sendInput("clear" + System.lineSeparator());
}

private Console getConsole() {
Expand Down

0 comments on commit 181b501

Please sign in to comment.