clang-format C++ files

This commit is contained in:
ridiculousfish
2019-12-29 14:25:42 -08:00
parent 3d9c0d3c69
commit 9f7972a08b
10 changed files with 76 additions and 69 deletions

View File

@@ -483,7 +483,8 @@ static int builtin_set_list(const wchar_t *cmd, set_cmd_opts_t &opts, int argc,
if (!names_only) {
wcstring val;
if (opts.shorten_ok && key == L"history") {
history_t *history = &history_t::history_with_name(history_session_id(env_stack_t::principal()));
history_t *history =
&history_t::history_with_name(history_session_id(env_stack_t::principal()));
for (size_t i = 1; i < history->size() && val.size() < 64; i++) {
if (i > 1) val += L' ';
val += expand_escape_string(history->item_at_index(i).str());