mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 22:22:11 +02:00
Terminal: Fix isConnectOnEnterIfClosed() should prevent the reconnect
only
This commit is contained in:
parent
c202358bde
commit
d575d149b6
1 changed files with 2 additions and 2 deletions
|
@ -869,9 +869,9 @@ public class VT100TerminalControl implements ITerminalControlForText, ITerminalC
|
|||
char character = event.character;
|
||||
|
||||
//if (!isConnected()) {
|
||||
if (fState==TerminalState.CLOSED && isConnectOnEnterIfClosed()) {
|
||||
if (fState==TerminalState.CLOSED) {
|
||||
// Pressing ENTER while not connected causes us to connect.
|
||||
if (character == '\r') {
|
||||
if (character == '\r' && isConnectOnEnterIfClosed()) {
|
||||
connectTerminal();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue