Skip to content

Commit

Permalink
Fix possible NPE in TailTipWidgets
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Nov 8, 2024
1 parent 7e937e0 commit 8b2d846
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion console/src/main/java/org/jline/widget/TailTipWidgets.java
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public void setDescriptionCache(boolean cache) {
*/
public boolean tailtipComplete() {
if (doTailTip(LineReader.EXPAND_OR_COMPLETE)) {
if (lastBinding().equals("\t")) {
if ("\t".equals(lastBinding())) {
callWidget(LineReader.BACKWARD_CHAR);
reader.runMacro(key(reader.getTerminal(), InfoCmp.Capability.key_right));
}
Expand Down

0 comments on commit 8b2d846

Please sign in to comment.