summaryrefslogtreecommitdiffstats
path: root/src/cmds_command.c
diff options
context:
space:
mode:
authorandmarti1424 <andmarti@gmail.com>2018-04-07 17:51:04 -0300
committerandmarti1424 <andmarti@gmail.com>2018-04-07 17:51:04 -0300
commitb9f6dfd77e420a068038be828a6e9fb40528346d (patch)
treef94aad08ebad660eda7e73d5c7d88a9fff036b43 /src/cmds_command.c
parenteb4894e02b345b179f552896171a744bddd6c9c7 (diff)
work on issue 246
Diffstat (limited to 'src/cmds_command.c')
-rw-r--r--src/cmds_command.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cmds_command.c b/src/cmds_command.c
index 8915c55..5765343 100644
--- a/src/cmds_command.c
+++ b/src/cmds_command.c
@@ -586,7 +586,7 @@ void do_commandmode(struct block * sb) {
} else if ( ! wcsncmp(inputline, L"filteron", 8) ) {
wcscpy(interp_line, inputline);
- if ( ! wcscmp(inputline, L"filteron") && p == -1) { // If there is no selected range
+ if ( ! wcscmp(inputline, L"filteron") && p == -1) { // If there is no selected range and no range in inputline passed
sc_error("Please specify a range or select one");
} else if (p != -1) {
wchar_t cline [BUFFERSIZE];
@@ -594,6 +594,8 @@ void do_commandmode(struct block * sb) {
swprintf(interp_line, BUFFERSIZE, L"filteron %s%d:", coltoa(sr->tlcol), sr->tlrow);
swprintf(interp_line + wcslen(interp_line), BUFFERSIZE, L"%s%d", coltoa(sr->brcol), sr->brrow);
send_to_interp(interp_line);
+ } else { // no range selected. range passed in inputline
+ send_to_interp(interp_line);
}
} else if ( ! wcsncmp(inputline, L"filteroff", 9) ) {
@@ -757,6 +759,7 @@ void do_commandmode(struct block * sb) {
if ((l = wcschr(line, L'=')) != NULL) l[0] = L'\0';
wcstombs(oper, line, BUFFERSIZE);
if (get_conf_value(oper)) {
+ sc_info("Config value changed: %s", oper);
wcscpy(interp_line, inputline);
send_to_interp(interp_line);
} else