mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-05 00:01:15 -03:00
Renamed env_vars to env_vars_snapshot_t
Cleanup of non-wcstring version of path_get_path
This commit is contained in:
11
kill.cpp
11
kill.cpp
@@ -57,14 +57,9 @@ static wchar_t *cut_buffer=0;
|
||||
*/
|
||||
static int has_xsel()
|
||||
{
|
||||
static int called=0;
|
||||
static int res = 0;
|
||||
|
||||
if (!called) {
|
||||
wchar_t *path = path_get_path( L"xsel" );
|
||||
res = !!path;
|
||||
free(path);
|
||||
called = 1;
|
||||
static int res=-1;
|
||||
if (res < 0) {
|
||||
res = !! path_get_path(L"xsel", NULL);
|
||||
}
|
||||
|
||||
return res;
|
||||
|
||||
Reference in New Issue
Block a user