Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
cppit
jucipp
Commits
9c0685cb
Commit
9c0685cb
authored
Sep 15, 2020
by
Ole Christian Eidheim
Browse files
No longer scroll terminal to botton when for instance running prettier or clang-format
parent
3c726f52
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
src/terminal.cpp
src/terminal.cpp
+0
-6
No files found.
src/terminal.cpp
View file @
9c0685cb
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment