summaryrefslogtreecommitdiff
path: root/src/buffer.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2018-08-27 21:52:57 +1000
committerMaxime Coste <mawww@kakoune.org>2018-08-29 07:53:59 +1000
commit68aba9e353961ccae17183ccdc65c3c89bdcd6c6 (patch)
treed8930ba60ce8a3da06d31e7e1b9ea687f08ca866 /src/buffer.cc
parent373858f9bfb50fe2c5670beffbfe63654cc12314 (diff)
Use shell specific quoting for env vars
Add a test case to validate roundtrips between Kakoune and the shell.
Diffstat (limited to 'src/buffer.cc')
-rw-r--r--src/buffer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.cc b/src/buffer.cc
index 3b636734..8ef76a09 100644
--- a/src/buffer.cc
+++ b/src/buffer.cc
@@ -688,7 +688,7 @@ void Buffer::on_option_changed(const Option& option)
m_flags &= ~Flags::ReadOnly;
}
run_hook_in_own_context("BufSetOption",
- format("{}={}", option.name(), option.get_as_string()));
+ format("{}={}", option.name(), option.get_as_string(Quoting::Kakoune)));
}
void Buffer::run_hook_in_own_context(StringView hook_name, StringView param, String client_name)