mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 03:01:15 -03:00
Do not remove trailing whitespace from function definitions, the may be a part of a function
darcs-hash:20061025122712-ac50b-6d7ab43572f71cafa5fddd65b8350498e2651b41.gz
This commit is contained in:
@@ -186,10 +186,6 @@ void function_add( const wchar_t *name,
|
|||||||
d->cmd = wcsdup( val );
|
d->cmd = wcsdup( val );
|
||||||
|
|
||||||
cmd_end = d->cmd + wcslen(d->cmd)-1;
|
cmd_end = d->cmd + wcslen(d->cmd)-1;
|
||||||
while( (cmd_end>d->cmd) && wcschr( L"\n\r\t ", *cmd_end ) )
|
|
||||||
{
|
|
||||||
*cmd_end-- = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
d->desc = desc?wcsdup( desc ):0;
|
d->desc = desc?wcsdup( desc ):0;
|
||||||
d->is_binding = is_binding;
|
d->is_binding = is_binding;
|
||||||
|
|||||||
Reference in New Issue
Block a user