1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-19 17:31:44 +03:00

fix shell_eval when no buffer in context

This commit is contained in:
Maxime Coste 2012-03-04 19:42:31 +00:00
parent 1f854bc0cc
commit 454258a495

View File

@ -136,6 +136,7 @@ static void shell_eval(std::vector<std::string>& params,
dup2(read_pipe[1], 1);
dup2(write_pipe[0], 0);
if (context.has_buffer())
setenv("kak_bufname", context.buffer().name().c_str(), 1);
execlp("sh", "sh", "-c", cmdline.c_str(), NULL);
}