We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1d349b commit e709a28Copy full SHA for e709a28
1 file changed
src/main/java/org/scijava/script/DefaultScriptInterpreter.java
@@ -74,14 +74,16 @@ public synchronized void writeHistory() {
74
}
75
76
@Override
77
- public synchronized String walkHistory(final String currentCommand, boolean forward) {
+ public synchronized String walkHistory(final String currentCommand,
78
+ final boolean forward)
79
+ {
80
if (history == null) return currentCommand;
81
history.replace(currentCommand);
82
return forward ? history.next() : history.previous();
83
84
85
- public void eval(String command) throws ScriptException {
86
+ public void eval(final String command) throws ScriptException {
87
if (history != null) history.add(command);
88
if (engine == null) throw new java.lang.IllegalArgumentException();
89
engine.eval(command);
0 commit comments