diff options
Diffstat (limited to 'src/cmds_command.c')
-rw-r--r-- | src/cmds_command.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cmds_command.c b/src/cmds_command.c index ae23d2f..c6da29a 100644 --- a/src/cmds_command.c +++ b/src/cmds_command.c @@ -23,6 +23,7 @@ #include "xls.h" #include "xlsx.h" #include "cmds_visual.h" +#include "plot.h" #ifdef UNDO #include "undo.h" @@ -90,6 +91,7 @@ L"nnoremap", L"nunmap", L"pad", L"plot", +L"plotedit", L"q", L"q!", L"quit!", @@ -662,6 +664,12 @@ void do_commandmode(struct block * sb) { swprintf(interp_line + wcslen(interp_line), BUFFERSIZE, L"%s%d", coltoa(cf), rf); send_to_interp(interp_line); + } else if ( ! wcsncmp(inputline, L"plotedit ", 9) ) { + wchar_t aux[wcslen(inputline)+1]; + wcscpy(aux, inputline); + del_range_wchars(aux, 0, 8); + plotedit(aux); + } else if ( ! wcscmp(inputline, L"set") ) { char valores[ (get_maxkey_length(user_conf_d) + get_maxvalue_length(user_conf_d) + 1) * user_conf_d->len ]; get_conf_values(valores); |