tHide status message line on first keypress after timeuot - ve - a minimal text editor (work in progress)
(HTM) git clone git://src.adamsgaard.dk/ve
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit ea5b2df1f62b662ba015d47b0a4c14e6c6ef978d
(DIR) parent 311ae0367363d872bbfa79140b23a515b28661c1
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
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(-)
---
(DIR) 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;