From 3e1d2b9049ee7069e0104db895e7b7cc1f41c305 Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <bensberg@justemail.net>
Date: Mon, 25 Apr 2016 17:56:23 +0200
Subject: [PATCH] tabbing: make sure to refresh the edit window when returning
 to it

Since commit 41ed690, cancelling a prompt after tabbing would sometimes
leave the list of file names on the screen.  When testing this first,
it worked fine -- I was fooled again by 'edit_refresh_needed' already
being TRUE when nano has just started up and sits waiting for the first
key stroke.  I have to hunt this down and kill it.
---
 src/files.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/files.c b/src/files.c
index 2dff2acd..06497d1d 100644
--- a/src/files.c
+++ b/src/files.c
@@ -2888,6 +2888,7 @@ char *input_tab(char *buf, bool allow_files, size_t *place,
 	    }
 
 	    wnoutrefresh(edit);
+	    edit_refresh_needed = TRUE;
 	    listed = TRUE;
 	}
 
-- 
GitLab