diff options
| author | Maxime Coste <mawww@kakoune.org> | 2024-08-14 22:04:35 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2024-08-14 22:04:35 +1000 |
| commit | 01cb818c2077f5059bfa84834298bb813aa9baca (patch) | |
| tree | cd87ab8afc5a92551299ae98cff16cdc11aaf119 /src/shell_manager.cc | |
| parent | 575f49f1b4cf93e8d91545f2e8959111bf6e7f2b (diff) | |
Reduce number of included headers
Diffstat (limited to 'src/shell_manager.cc')
| -rw-r--r-- | src/shell_manager.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/shell_manager.cc b/src/shell_manager.cc index d08c4dbd..7346f2c1 100644 --- a/src/shell_manager.cc +++ b/src/shell_manager.cc @@ -10,7 +10,6 @@ #include "face_registry.hh" #include "file.hh" #include "flags.hh" -#include "option.hh" #include "option_types.hh" #include "regex.hh" @@ -118,7 +117,7 @@ Shell spawn_shell(const char* shell, StringView cmdline, if (pid_t pid = vfork()) return {pid, std::move(stdin_pipe[1]), std::move(stdout_pipe[0]), std::move(stderr_pipe[0])}; - auto renamefd = [](int oldfd, int newfd) { + constexpr auto renamefd = [](int oldfd, int newfd) { if (oldfd == newfd) return; dup2(oldfd, newfd); |
