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

pressing PgDn in a code without scrollbar gives Exception #2990

Closed
Akarshit opened this Issue Nov 29, 2014 · 3 comments

Comments

Projects
None yet
3 participants
@Akarshit
Member

Akarshit commented Nov 29, 2014

In the code
void setup(){
}
pressing PgDn gives excetion

@aengelke

This comment has been minimized.

Show comment
Hide comment
@aengelke

aengelke Nov 29, 2014

Contributor

The relevant stacktrace for an empty window:

Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: First line out of range: -20 [0, 1]
    at processing.app.syntax.JEditTextArea.setFirstLine(JEditTextArea.java:418)
    at processing.app.syntax.InputHandler$next_page.actionPerformed(InputHandler.java:872)
    at processing.app.syntax.InputHandler.executeAction(InputHandler.java:303)
    at processing.app.syntax.DefaultInputHandler.keyPressed(DefaultInputHandler.java:220)
    at processing.app.syntax.JEditTextArea.processKeyEvent(JEditTextArea.java:1963)
Contributor

aengelke commented Nov 29, 2014

The relevant stacktrace for an empty window:

Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: First line out of range: -20 [0, 1]
    at processing.app.syntax.JEditTextArea.setFirstLine(JEditTextArea.java:418)
    at processing.app.syntax.InputHandler$next_page.actionPerformed(InputHandler.java:872)
    at processing.app.syntax.InputHandler.executeAction(InputHandler.java:303)
    at processing.app.syntax.DefaultInputHandler.keyPressed(DefaultInputHandler.java:220)
    at processing.app.syntax.JEditTextArea.processKeyEvent(JEditTextArea.java:1963)
@Akarshit

This comment has been minimized.

Show comment
Hide comment
@Akarshit

Akarshit Nov 29, 2014

Member

issued the pr for this #2991

Member

Akarshit commented Nov 29, 2014

issued the pr for this #2991

benfry added a commit that referenced this issue Apr 1, 2015

Merge pull request #2991 from Akarshit/bugFix-PgDnException
Fix for Exception when pressing PgDn in a code without scrollbar #2990
@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Apr 1, 2015

Member

Fixed for 3.0a6.

Member

benfry commented Apr 1, 2015

Fixed for 3.0a6.

@benfry benfry closed this Apr 1, 2015

benfry added a commit that referenced this issue Apr 1, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment