From 9c0685cb010fa329cc6734a7e2c629a5f63cde78 Mon Sep 17 00:00:00 2001 From: eidheim Date: Tue, 15 Sep 2020 09:43:07 +0200 Subject: [PATCH] No longer scroll terminal to botton when for instance running prettier or clang-format --- src/terminal.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/terminal.cpp b/src/terminal.cpp index cfe1490..fd09b6f 100644 --- a/src/terminal.cpp +++ b/src/terminal.cpp @@ -205,9 +205,6 @@ Terminal::Terminal() : Source::SearchView() { } int Terminal::process(const std::string &command, const boost::filesystem::path &path, bool use_pipes) { - if(scroll_to_bottom) - scroll_to_bottom(); - std::unique_ptr process; if(use_pipes) process = std::make_unique( @@ -230,9 +227,6 @@ int Terminal::process(const std::string &command, const boost::filesystem::path } int Terminal::process(std::istream &stdin_stream, std::ostream &stdout_stream, const std::string &command, const boost::filesystem::path &path, std::ostream *stderr_stream) { - if(scroll_to_bottom) - scroll_to_bottom(); - TinyProcessLib::Process process( command, path.string(), [&stdout_stream](const char *bytes, size_t n) {