diff options
author | Curtis McEnroe | 2019-02-22 15:54:59 -0500 |
---|---|---|
committer | Curtis McEnroe | 2019-02-22 15:54:59 -0500 |
commit | 274a5f7d6e77443e2ad140590d05785277a577c4 (patch) | |
tree | 629baf62bd0c2e9e7fe64bac82d3623e8fe3bed7 /ui.c | |
parent | 2c07d5041540239fb6fe25af7748aa463a98ed6e (diff) |
Update status line after scrolling and term events
Diffstat (limited to 'ui.c')
-rw-r--r-- | ui.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ui.c b/ui.c index 89d3e76..c387a2d 100644 --- a/ui.c +++ b/ui.c @@ -441,7 +441,9 @@ static void keyCode(wchar_t code) { break; case KEY_DC: edit(win->tag, EditDelete, 0); break; case KEY_BACKSPACE: edit(win->tag, EditBackspace, 0); break; case KEY_ENTER: edit(win->tag, EditEnter, 0); + break; default: return; } + uiStatus(); } static void keyChar(wchar_t ch) { @@ -453,7 +455,10 @@ static void keyChar(wchar_t ch) { break; case TermFocusOut: if (win) windowMark(win); break; default: {} } - if (event) return; + if (event) { + uiStatus(); + return; + } } if (ch == Del) ch = L'\b'; |