Skip to content

Commit 062f753

Browse files
committed
Fixed build.
1 parent cb78349 commit 062f753

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/sources/src/org/graalvm/visualvm/sources/viewer/internal/InternalSourcesViewer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,11 @@ public boolean open(SourceHandle handle) {
5858
final String uri = handle.getSourceUri();
5959
final String text = handle.getText();
6060
final int offset = handle.getOffset();
61+
final int endOffset = handle.getEndOffset();
6162

6263
SwingUtilities.invokeLater(new Runnable() {
6364
public void run() {
64-
InternalSourceViewerTopComponent.showSource(uri, text, offset == -1 ? 0 : offset, getAppearance());
65+
InternalSourceViewerTopComponent.showSource(uri, text, offset == -1 ? 0 : offset, offset == -1 ? 0 : endOffset, getAppearance());
6566
}
6667
});
6768

0 commit comments

Comments
 (0)