tHide status message line on first keypress after timeuot - ve - a minimal text… | |
git clone git://src.adamsgaard.dk/ve | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit ea5b2df1f62b662ba015d47b0a4c14e6c6ef978d | |
parent 311ae0367363d872bbfa79140b23a515b28661c1 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Tue, 6 Aug 2019 15:37:58 +0200 | |
Hide status message line on first keypress after timeuot | |
Diffstat: | |
M output.c | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/output.c b/output.c | |
t@@ -30,7 +30,6 @@ ab_free(struct abuf *ab) { | |
int | |
show_status_message() | |
{ | |
- /* TODO try simpler form */ | |
if (E.show_status && | |
strlen(E.status_msg) && | |
time(NULL) - E.status_msg_time < STATUS_MESSAGE_TIMEOUT) { | |
t@@ -175,6 +174,7 @@ editor_draw_rows(struct abuf *ab) | |
void | |
editor_refresh_screen() | |
{ | |
+ show_status_message(); | |
editor_scroll(); | |
struct abuf ab = ABUF_INIT; |