summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrés <andmarti@gmail.com>2022-10-03 18:34:54 -0300
committerAndrés <andmarti@gmail.com>2022-10-03 18:34:54 -0300
commit83dade4dcfeae34d2fc7005e0bd999a0b8de6872 (patch)
tree6803b1f140bc9a97bda030aed619c2d2c1b30afc
parent51439e8de3aedcae8a7e8c44454e7b2fe8b0df70 (diff)
Avoid reentering ':' in inputpad when refreshing
-rw-r--r--src/tui.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tui.c b/src/tui.c
index 7621993..eadbb9f 100644
--- a/src/tui.c
+++ b/src/tui.c
@@ -582,6 +582,7 @@ void ui_show_header() {
case EDIT_MODE:
mvwprintw(input_pad, 0, 1, "%ls", inputline);
wmove(input_pad, 0, inputline_pos + 1);
+ break;
}
int scroll = 0;
if (inputline_pos > COLS - 14) scroll += inputline_pos - COLS + 14;
@@ -670,8 +671,8 @@ void ui_print_mode() {
ui_set_ucolor(input_win, &ucolors[INPUT], DEFAULT_COLOR);
#endif
// show ':'
- mvwprintw(input_pad, 0, 0, ":");
- wmove(input_pad, 0, 1);
+ //mvwprintw(input_pad, 0, 0, ":");
+ //wmove(input_pad, 0, 1);
}
return;