summaryrefslogtreecommitdiffstats
path: root/src/cmds_command.c
diff options
context:
space:
mode:
authormongo <andmarti@gmail.com>2017-04-05 10:41:32 -0300
committermongo <andmarti@gmail.com>2017-04-05 10:41:32 -0300
commit5b1baaddf351a5d4c24789f109cf5bfa17d62586 (patch)
tree42013d37458c7796f188bca16efe0c10441a0bcd /src/cmds_command.c
parent90cfe76112a21eb112cf87b5a5f010192d6de385 (diff)
more cleaning
Diffstat (limited to 'src/cmds_command.c')
-rw-r--r--src/cmds_command.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/cmds_command.c b/src/cmds_command.c
index 634eec4..dac99e0 100644
--- a/src/cmds_command.c
+++ b/src/cmds_command.c
@@ -131,13 +131,13 @@ void do_commandmode(struct block * sb) {
real_inputline_pos--;
del_wchar(inputline, real_inputline_pos);
inputline_pos -= l;
- show_header(input_win);
+ ui_show_header();
#ifdef HISTORY_FILE
if (commandline_history->pos == 0)
del_wchar(get_line_from_history(commandline_history, commandline_history->pos), real_inputline_pos); // Clean history
#endif
- show_header(input_win);
+ ui_show_header();
return;
} else if (sb->value == OKEY_LEFT) { // LEFT
@@ -145,7 +145,7 @@ void do_commandmode(struct block * sb) {
real_inputline_pos--;
int l = wcwidth(inputline[real_inputline_pos]);
inputline_pos -= l;
- show_header(input_win);
+ ui_show_header();
}
return;
@@ -154,7 +154,7 @@ void do_commandmode(struct block * sb) {
if (inputline_pos < max) {
int l = wcwidth(inputline[real_inputline_pos++]);
inputline_pos += l;
- show_header(input_win);
+ ui_show_header();
}
return;
@@ -166,7 +166,7 @@ void do_commandmode(struct block * sb) {
if (commandline_history->pos == 0)
del_wchar(get_line_from_history(commandline_history, commandline_history->pos), real_inputline_pos); // Clean history
#endif
- show_header(input_win);
+ ui_show_header();
return;
#ifdef HISTORY_FILE
@@ -185,7 +185,7 @@ void do_commandmode(struct block * sb) {
commandline_history->pos += delta;
wcscpy(inputline, get_line_from_history(commandline_history, commandline_history->pos));
inputline_pos = wcswidth(inputline, real_inputline_pos);
- show_header(input_win);
+ ui_show_header();
return;
#endif
@@ -220,7 +220,7 @@ void do_commandmode(struct block * sb) {
wcscat(sl, cline); // Insert into history
}
#endif
- show_header(input_win);
+ ui_show_header();
return;
} else if (sb->value == ctl('f')) { // C-f
@@ -240,7 +240,7 @@ void do_commandmode(struct block * sb) {
wcscat(sl, cline); // Insert into history
}
#endif
- show_header(input_win);
+ ui_show_header();
return;
} else if ( sb->value == ctl('w') || sb->value == ctl('b') ||
@@ -292,12 +292,12 @@ void do_commandmode(struct block * sb) {
set_comp(0);
}
- show_header(input_win);
+ ui_show_header();
return;
} else if (sc_isprint(sb->value)) { // Write new char
ins_in_line(sb->value);
- show_header(input_win);
+ ui_show_header();
#ifdef HISTORY_FILE
if (commandline_history->pos == 0) { // Only if editing the new command
@@ -839,7 +839,6 @@ void do_commandmode(struct block * sb) {
set_comp(0); // unmark tab completion
update(TRUE);
}
- //show_header(input_win); // DO NOT UNCOMMENT
return;
}