mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 20:33:44 +08:00
Remove some unnecessary string formatting
This commit is contained in:
parent
06269ed67d
commit
5ebcd3de98
|
@ -133,10 +133,9 @@ void builtin_bind_t::list(const wchar_t *bind_mode, bool user, io_streams_t &str
|
|||
/// are defined for this terminal are printed.
|
||||
void builtin_bind_t::key_names(bool all, io_streams_t &streams) {
|
||||
const wcstring_list_t names = input_terminfo_get_names(!all);
|
||||
for (size_t i = 0; i < names.size(); i++) {
|
||||
const wcstring &name = names.at(i);
|
||||
|
||||
streams.out.append_format(L"%ls\n", name.c_str());
|
||||
for (const wcstring &name : names) {
|
||||
streams.out.append(name);
|
||||
streams.out.append(L'\n');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user