mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-06 00:41:15 -03:00
Signal handling cleanup and improved safety
Fixes issue where you couldn't control-C out of a loop (https://github.com/ridiculousfish/fishfish/issues/13) Also stops doing memory allocation in the signal handler (oops) https://github.com/ridiculousfish/fishfish/issues/27
This commit is contained in:
@@ -1341,14 +1341,6 @@ static void expand_tilde_internal( wcstring &input )
|
||||
}
|
||||
}
|
||||
|
||||
static wchar_t * expand_tilde_internal_compat( wchar_t *in )
|
||||
{
|
||||
wcstring tmp = in;
|
||||
expand_tilde_internal(tmp);
|
||||
free(in);
|
||||
return wcsdup(tmp.c_str());
|
||||
}
|
||||
|
||||
void expand_tilde( wcstring &input)
|
||||
{
|
||||
if( ! input.empty() && input.at(0) == L'~' )
|
||||
|
||||
Reference in New Issue
Block a user