summaryrefslogtreecommitdiffstats
path: root/src/cmds_command.c
diff options
context:
space:
mode:
authorandmarti1424 <andmarti@gmail.com>2017-04-26 23:29:27 -0300
committerandmarti1424 <andmarti@gmail.com>2017-04-26 23:29:27 -0300
commit762cf9976115d843ea0afd490b9db06caee3de0d (patch)
treea4550a2ef4ba844d44d036930aa0e757fefdcb6e /src/cmds_command.c
parent255376b41d529907ff52b7616f376db0e2817691 (diff)
Added plotedit command
Diffstat (limited to 'src/cmds_command.c')
-rw-r--r--src/cmds_command.c8
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);