mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-29 14:44:56 +03:00
fix shell_eval when no buffer in context
This commit is contained in:
parent
1f854bc0cc
commit
454258a495
@ -136,7 +136,8 @@ static void shell_eval(std::vector<std::string>& params,
|
|||||||
dup2(read_pipe[1], 1);
|
dup2(read_pipe[1], 1);
|
||||||
dup2(write_pipe[0], 0);
|
dup2(write_pipe[0], 0);
|
||||||
|
|
||||||
setenv("kak_bufname", context.buffer().name().c_str(), 1);
|
if (context.has_buffer())
|
||||||
|
setenv("kak_bufname", context.buffer().name().c_str(), 1);
|
||||||
execlp("sh", "sh", "-c", cmdline.c_str(), NULL);
|
execlp("sh", "sh", "-c", cmdline.c_str(), NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user