summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
diff options
context:
space:
mode:
authorJohannes Altmanninger <aclopte@gmail.com>2022-02-12 16:12:29 +0100
committerJohannes Altmanninger <aclopte@gmail.com>2022-03-08 20:30:06 +0100
commit13948ecb941a4a684cc1ed29f903af54684c1378 (patch)
treef63baa08238f887e109d79a29a9164c6d091ae56 /src/input_handler.cc
parenteaaf562ed1449076b9f0dc8afc9db9f790d56c46 (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