mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-27 00:21:15 -03:00
Merge branch 'master' into parser_cleanup
This commit is contained in:
24
parser.cpp
24
parser.cpp
@@ -1392,17 +1392,18 @@ void parser_t::get_backtrace(const wcstring &src, const parse_error_list_t &erro
|
||||
if (filename)
|
||||
{
|
||||
prefix = format_string(_(L"%ls (line %lu): "), user_presentable_path(filename).c_str(), which_line);
|
||||
//append_format(*output, _(L"%ls (line %lu):\n"), user_presentable_path(filename).c_str(), which_line);
|
||||
}
|
||||
else
|
||||
{
|
||||
prefix = L"fish: ";
|
||||
//output->append(L"fish: ");
|
||||
}
|
||||
|
||||
output->append(err.describe_with_prefix(src, prefix, skip_caret));
|
||||
output->push_back(L'\n');
|
||||
|
||||
const wcstring description = err.describe_with_prefix(src, prefix, skip_caret);
|
||||
if (! description.empty())
|
||||
{
|
||||
output->append(description);
|
||||
output->push_back(L'\n');
|
||||
}
|
||||
this->stack_trace(0, *output);
|
||||
}
|
||||
}
|
||||
@@ -1488,16 +1489,3 @@ bool parser_use_ast(void)
|
||||
return from_string<bool>(var);
|
||||
}
|
||||
}
|
||||
|
||||
bool pager_use_inline(void)
|
||||
{
|
||||
env_var_t var = env_get_string(L"fish_new_pager");
|
||||
if (var.missing_or_empty())
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
return from_string<bool>(var);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user