diff options
Diffstat (limited to 'src/cmds_command.c')
-rw-r--r-- | src/cmds_command.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/cmds_command.c b/src/cmds_command.c index 46472b2..87fa72e 100644 --- a/src/cmds_command.c +++ b/src/cmds_command.c @@ -905,7 +905,16 @@ void do_commandmode(struct block * sb) { if (savefile() == 0) shall_quit = 1; } else if ( ! wcscmp(inputline, L"fcopy") ) { - fcopy(); + fcopy(""); + + } else if ( ! wcsncmp(inputline, L"fcopy ", 6)) { + + wchar_t line [BUFFERSIZE]; + wcscpy(line, inputline); + del_range_wchars(line, 0, 5); + char action[BUFFERSIZE]; + wcstombs(action, line, BUFFERSIZE); + fcopy(action); } else if ( ! wcscmp(inputline, L"fsum") ) { fsum(); |