mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 02:13:38 +08:00
Remove RUNNING_IN_XCODE checks
This is never set any more.
This commit is contained in:
parent
09f8e05b80
commit
72de8768d9
|
@ -127,22 +127,14 @@ static void err(const wchar_t *blah, ...) {
|
|||
va_start(va, blah);
|
||||
err_count++;
|
||||
|
||||
// Xcode's term doesn't support color (even though TERM claims it does).
|
||||
bool colorize = !getenv("RUNNING_IN_XCODE");
|
||||
|
||||
// Show errors in red.
|
||||
if (colorize) {
|
||||
std::fputws(L"\x1B[31m", stdout);
|
||||
}
|
||||
std::fputws(L"\x1B[31m", stdout);
|
||||
std::fwprintf(stdout, L"Error: ");
|
||||
std::vfwprintf(stdout, blah, va);
|
||||
va_end(va);
|
||||
|
||||
// Return to normal color.
|
||||
if (colorize) {
|
||||
std::fputws(L"\x1B[0m", stdout);
|
||||
}
|
||||
|
||||
std::fputws(L"\x1B[0m", stdout);
|
||||
std::fwprintf(stdout, L"\n");
|
||||
}
|
||||
|
||||
|
@ -1050,10 +1042,6 @@ static void test_1_cancellation(const wchar_t *src) {
|
|||
}
|
||||
|
||||
static void test_cancellation() {
|
||||
if (getenv("RUNNING_IN_XCODE")) {
|
||||
say(L"Skipping Ctrl-C cancellation test because we are running in Xcode debugger");
|
||||
return;
|
||||
}
|
||||
say(L"Testing Ctrl-C cancellation. If this hangs, that's a bug!");
|
||||
|
||||
// Enable fish's signal handling here. We need to make this interactive for fish to install its
|
||||
|
|
Loading…
Reference in New Issue
Block a user