Skip to content

Commit 77e9da7

Browse files
committedAug 29, 2023
LineReader Bug (Open or Close Parenthesis), fixes #859
1 parent b85d2e5 commit 77e9da7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎console/src/main/java/org/jline/console/impl/SystemRegistryImpl.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2002-2022, the original author(s).
2+
* Copyright (c) 2002-2023, the original author(s).
33
*
44
* This software is distributable under the BSD license. See the terms of the
55
* BSD license in the documentation provided with this software.
@@ -402,7 +402,7 @@ public CmdDesc commandDescription(CmdLine line) {
402402
break;
403403
case METHOD:
404404
case SYNTAX:
405-
if (!isCommandOrScript(cmd)) {
405+
if (!isCommandOrScript(cmd) && scriptDescription != null) {
406406
out = scriptDescription.apply(line);
407407
}
408408
break;

0 commit comments

Comments
 (0)
Please sign in to comment.