diff options
author | Lars Lenckowski <larslenckowski@gmail.com> | 2019-02-14 17:02:46 +0100 |
---|---|---|
committer | Lars Lenckowski <larslenckowski@gmail.com> | 2019-02-14 17:24:19 +0100 |
commit | 145d4b276fcf04edbf7aaaab3cf0452e2b22cf1c (patch) | |
tree | 2f897171250b57dead788dc8e62552764cddccdf /src/cmds_command.c | |
parent | 77fb7faccc7e2aae674682b28839eb5ffce6492f (diff) |
Expand fcopy's functionality
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(); |