Terminal: Minor fixes
Change-Id: I10d1a248e62f37a34c1d2d0ae3088403c6de3adf Reviewed-on: https://review.haiku-os.org/c/haiku/+/2094 Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
54bac4b789
commit
476d0ad38e
@@ -125,14 +125,13 @@ TermApp::ReadyToRun()
|
||||
status_t status = _MakeTermWindow();
|
||||
|
||||
// failed spawn, print stdout and open alert panel
|
||||
// TODO: This alert does never show up.
|
||||
if (status < B_OK) {
|
||||
BAlert* alert = new BAlert("alert",
|
||||
B_TRANSLATE("Terminal couldn't start the shell. Sorry."),
|
||||
B_TRANSLATE("OK"), NULL, NULL, B_WIDTH_FROM_LABEL,
|
||||
B_INFO_ALERT);
|
||||
alert->SetFlags(alert->Flags() | B_CLOSE_ON_ESCAPE);
|
||||
alert->Go(NULL);
|
||||
alert->Go();
|
||||
PostMessage(B_QUIT_REQUESTED);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -3022,8 +3022,6 @@ TermView::_HandleInputMethodChanged(BMessage *message)
|
||||
KeyDown(prevPos, currPos - prevPos);
|
||||
prevPos = currPos;
|
||||
}
|
||||
|
||||
Invalidate();
|
||||
} else {
|
||||
// temporarily show transient state of inline input
|
||||
int32 selectionStart = 0;
|
||||
@@ -3033,8 +3031,8 @@ TermView::_HandleInputMethodChanged(BMessage *message)
|
||||
|
||||
fInline->SetSelectionOffset(selectionStart);
|
||||
fInline->SetSelectionLength(selectionEnd - selectionStart);
|
||||
Invalidate();
|
||||
}
|
||||
Invalidate();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user