Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LineReader encounters exception if tabs used in dummy terminal #367

offbynull opened this Issue Mar 15, 2019 · 0 comments


None yet
1 participant
Copy link

offbynull commented Mar 15, 2019

If in a dummy terminal and your input line is nothing but a single tab, the following exception occurs...

Exception in thread "main" java.lang.IllegalStateException: Shell error
Caused by: java.lang.ArithmeticException: / by zero
	at org.jline.reader.impl.LineReaderImpl.toColumns(
	at org.jline.reader.impl.LineReaderImpl.toColumns(
	at org.jline.reader.impl.LineReaderImpl.computePost(
	at org.jline.reader.impl.LineReaderImpl.computePost(
	at org.jline.reader.impl.LineReaderImpl.doList(
	at org.jline.reader.impl.LineReaderImpl.doComplete(
	at org.jline.reader.impl.LineReaderImpl.expandOrComplete(
	at org.jline.reader.impl.LineReaderImpl$1.apply(
	at org.jline.reader.impl.LineReaderImpl.readLine(
	... 1 more

@gnodet gnodet closed this in 886867c Mar 15, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.