Skip to content

Commit

Permalink
groovyConsole: show line numbers when launched with a filename (closes
Browse files Browse the repository at this point in the history
…#1181)

When using the `groovyConsole filename` invocation format,
only the first line was numbered.
  • Loading branch information
vmj authored and paulk-asert committed Mar 3, 2020
1 parent e9f18de commit 8ec1a49
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -856,6 +856,10 @@ class Console implements CaretListener, HyperlinkListener, ComponentListener, Fo
// GROOVY-3684: focus away and then back to inputArea ensures caret blinks
swing.doLater outputArea.&requestFocusInWindow
swing.doLater inputArea.&requestFocusInWindow
// Line numbers are typically (re)drawn using a document listener,
// but those were disabled above while modifying the document.
// So make sure line numbers are drawn now.
inputEditor.repaint()
}
}
}
Expand Down

0 comments on commit 8ec1a49

Please sign in to comment.