summaryrefslogtreecommitdiff
path: root/src/command_manager.cc
diff options
context:
space:
mode:
authorSidharth Kshatriya <sid.kshatriya@gmail.com>2021-06-24 13:53:32 +0530
committerSidharth Kshatriya <sid.kshatriya@gmail.com>2021-06-24 14:03:58 +0530
commit0ca81e7cecaee96ba3f7fb7f7fc4011699431bf8 (patch)
tree30c167bef9a7caa487c333cc0208de3066755282 /src/command_manager.cc
parentab3a577a43789ec556c81481ce8c9ebcc4132fa0 (diff)
Fix: Kakoune passed environment variables in shell invocations are repeated
If a %sh{} script refers to any variables multiple times they are all multiply included in the environment. Example: if a %sh{} invocation refers to ${kak_buffile} 5 times, the environment will have "kak_buffile=..." repeated 5 times and so on. This repetition happens for each multiply used variable that is passed into the environment. The variable should, of course, be only passed into the environment once. This commit should fix this issue.
Diffstat (limited to 'src/command_manager.cc')
0 files changed, 0 insertions, 0 deletions