Commit 9c0685cb authored by Ole Christian Eidheim's avatar Ole Christian Eidheim
Browse files

No longer scroll terminal to botton when for instance running prettier or clang-format

parent 3c726f52
......@@ -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<TinyProcessLib::Process> process;
if(use_pipes)
process = std::make_unique<TinyProcessLib::Process>(
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment