diff options
| author | Johannes Altmanninger <aclopte@gmail.com> | 2022-02-12 16:12:29 +0100 |
|---|---|---|
| committer | Johannes Altmanninger <aclopte@gmail.com> | 2022-03-08 20:30:06 +0100 |
| commit | 13948ecb941a4a684cc1ed29f903af54684c1378 (patch) | |
| tree | f63baa08238f887e109d79a29a9164c6d091ae56 /src/input_handler.cc | |
| parent | eaaf562ed1449076b9f0dc8afc9db9f790d56c46 (diff) | |
rc diff: pass diff to diff-jump via stdin instead of env
Passing large diff buffers via the environment can quickly result in
the error "execve failed: Argument list too long". Use a pipe like
in format.kak
When running | (or <a-|>), Kakoune does not use %arg{@} to populate
"$@" (missing feature?). Work around this by moving %arg{@} to a
temporary register. Apparently $kak_quoted_reg_a will never be an
empty list, so work around that too.
When diff parsing fails, we take care to run "fail" in the calling
client, unlike :format (probably a bug in format.kak).
(This patch is best viewed while ignoring whitespace changes (diff -w))
Diffstat (limited to 'src/input_handler.cc')
0 files changed, 0 insertions, 0 deletions
