Skip to content

Commit 3e4ec79

Browse files
javier-godoymlopezFC
authored andcommitted
fix(demo): avoid error message when the line is empty
1 parent 917d483 commit 3e4ec79

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/java/com/flowingcode/vaadin/addons/xterm/XtermDemoView.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ public XtermDemoView() {
9696
showHistory();
9797
break;
9898
default:
99-
xterm.writeln("Bad command");
99+
if (!ev.getLine().trim().isEmpty()) {
100+
xterm.writeln("Bad command");
101+
}
100102
Notification.show(ev.getLine());
101103
}
102104
});

0 commit comments

Comments
 (0)