mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-22 07:31:17 -03:00
Restyle codebase
And again clang-format does something I don't like: - if (found != end && std::strncmp(found->name, name, len) == 0 && found->name[len] == 0) return found; + if (found != end && std::strncmp(found->name, name, len) == 0 && found->name[len] == 0) + return found; I *know* this is a bit of a long line. I would still quite like having no brace-less multi-line if *ever*. Either put the body on the same line, or add braces. Blergh
This commit is contained in:
@@ -3694,7 +3694,7 @@ maybe_t<wcstring> reader_data_t::readline(int nchars_or_0) {
|
||||
history_search.reset();
|
||||
|
||||
// Get the current terminal modes. These will be restored when the function returns.
|
||||
struct termios old_modes{};
|
||||
struct termios old_modes {};
|
||||
if (tcgetattr(conf.in, &old_modes) == -1 && errno == EIO) redirect_tty_output();
|
||||
|
||||
// Set the new modes.
|
||||
|
||||
Reference in New Issue
Block a user