Terminal: Minor fixes

Change-Id: I10d1a248e62f37a34c1d2d0ae3088403c6de3adf
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2094
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
Zotyamester 2020-01-09 20:34:10 +00:00 committed by waddlesplash
parent 54bac4b789
commit 476d0ad38e
2 changed files with 2 additions and 5 deletions

View File

@ -125,14 +125,13 @@ TermApp::ReadyToRun()
status_t status = _MakeTermWindow(); status_t status = _MakeTermWindow();
// failed spawn, print stdout and open alert panel // failed spawn, print stdout and open alert panel
// TODO: This alert does never show up.
if (status < B_OK) { if (status < B_OK) {
BAlert* alert = new BAlert("alert", BAlert* alert = new BAlert("alert",
B_TRANSLATE("Terminal couldn't start the shell. Sorry."), B_TRANSLATE("Terminal couldn't start the shell. Sorry."),
B_TRANSLATE("OK"), NULL, NULL, B_WIDTH_FROM_LABEL, B_TRANSLATE("OK"), NULL, NULL, B_WIDTH_FROM_LABEL,
B_INFO_ALERT); B_INFO_ALERT);
alert->SetFlags(alert->Flags() | B_CLOSE_ON_ESCAPE); alert->SetFlags(alert->Flags() | B_CLOSE_ON_ESCAPE);
alert->Go(NULL); alert->Go();
PostMessage(B_QUIT_REQUESTED); PostMessage(B_QUIT_REQUESTED);
return; return;
} }

View File

@ -3022,8 +3022,6 @@ TermView::_HandleInputMethodChanged(BMessage *message)
KeyDown(prevPos, currPos - prevPos); KeyDown(prevPos, currPos - prevPos);
prevPos = currPos; prevPos = currPos;
} }
Invalidate();
} else { } else {
// temporarily show transient state of inline input // temporarily show transient state of inline input
int32 selectionStart = 0; int32 selectionStart = 0;
@ -3033,8 +3031,8 @@ TermView::_HandleInputMethodChanged(BMessage *message)
fInline->SetSelectionOffset(selectionStart); fInline->SetSelectionOffset(selectionStart);
fInline->SetSelectionLength(selectionEnd - selectionStart); fInline->SetSelectionLength(selectionEnd - selectionStart);
Invalidate();
} }
Invalidate();
} }