summaryrefslogtreecommitdiff
path: root/src/commands.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2024-08-26 21:00:08 +1000
committerMaxime Coste <mawww@kakoune.org>2024-08-26 21:00:08 +1000
commit9275d965a6952d44035fd0502ee0d3991352c460 (patch)
treec3a0abf7b582c3bc53a492c1e1d3dbc72d215879 /src/commands.cc
parent202747e68896aebbe38cc160391629e020f0c2a1 (diff)
Do not gather full input data in a single string when piping
Refactor ShellManager and pipe to feed lines from the buffer directly, this should reduce memory use when piping big chunks of buffers. The pipe output is still provided as a single big buffer.
Diffstat (limited to 'src/commands.cc')
-rw-r--r--src/commands.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands.cc b/src/commands.cc
index 1d3f5a50..78193e57 100644
--- a/src/commands.cc
+++ b/src/commands.cc
@@ -277,7 +277,7 @@ struct ShellScriptCompleter
{ { "token_to_complete", to_string(token_to_complete) },
{ "pos_in_token", to_string(pos_in_token) } }
};
- String output = ShellManager::instance().eval(m_shell_script, context, {},
+ String output = ShellManager::instance().eval(m_shell_script, context, StringView{},
ShellManager::Flags::WaitForStdout,
shell_context).first;
CandidateList candidates;