Skip to content

Commit

Permalink
LineReader Bug (Open or Close Parenthesis), fixes #859
Browse files Browse the repository at this point in the history
  • Loading branch information
mattirn committed Aug 29, 2023
1 parent b85d2e5 commit 77e9da7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2002-2022, the original author(s).
* Copyright (c) 2002-2023, the original author(s).
*
* This software is distributable under the BSD license. See the terms of the
* BSD license in the documentation provided with this software.
Expand Down Expand Up @@ -402,7 +402,7 @@ public CmdDesc commandDescription(CmdLine line) {
break;
case METHOD:
case SYNTAX:
if (!isCommandOrScript(cmd)) {
if (!isCommandOrScript(cmd) && scriptDescription != null) {
out = scriptDescription.apply(line);
}
break;
Expand Down

0 comments on commit 77e9da7

Please sign in to comment.