Skip to content

Commit

Permalink
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -72,7 +72,7 @@ public abstract static class BasicWordBreakCharactersNode extends CoreMethodArra

@Specialization
public DynamicObject basicWordBreakCharacters() {
return StringOperations.createString(getContext(), StringOperations.createRope(ProcCompleter.getDelimiter(), UTF8Encoding.INSTANCE));
return createString(StringOperations.createRope(ProcCompleter.getDelimiter(), UTF8Encoding.INSTANCE));
}

}
@@ -99,7 +99,10 @@ public abstract static class GetScreenSizeNode extends CoreMethodArrayArgumentsN

@Specialization
public DynamicObject getScreenSize() {
final int[] store = { getContext().getConsoleHolder().getReadline().getTerminal().getHeight(), getContext().getConsoleHolder().getReadline().getTerminal().getWidth() };
final int[] store = {
getContext().getConsoleHolder().getReadline().getTerminal().getHeight(),
getContext().getConsoleHolder().getReadline().getTerminal().getWidth()
};

return ArrayHelpers.createArray(getContext(), store, 2);
}
@@ -159,7 +162,7 @@ public Object readline(String prompt, boolean addToHistory) {
// is that no al M17n encodings are valid encodings in java.lang.String.
// We clearly need a byte[]-version of JLine since we cannot totally
// behave properly using Java Strings.
line = StringOperations.createString(getContext(), StringOperations.createRope(value, getContext().getJRubyRuntime().getDefaultExternalEncoding()));
line = createString(StringOperations.createRope(value, getContext().getJRubyRuntime().getDefaultExternalEncoding()));
}

return taintNode.executeTaint(line);

0 comments on commit cbe510f

Please sign in to comment.