aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--kill.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kill.cpp b/kill.cpp
index 9816e459..6ae27c51 100644
--- a/kill.cpp
+++ b/kill.cpp
@@ -103,7 +103,7 @@ void kill_add(const wcstring &str)
const env_var_t disp_wstr = env_get_string(L"DISPLAY");
if (!disp_wstr.missing())
{
- escaped_str = escape_string(str, ESCAPE_ALL);
+ escaped_str = escape(str.c_str(), ESCAPE_ALL);
cmd.assign(L"echo -n ");
cmd.append(escaped_str);
cmd.append(L" | xsel -i -b");