From cde8de034524d00aba4ff4142e658baff511e12d Mon Sep 17 00:00:00 2001 From: orbital Date: Sun, 2 Apr 2023 22:05:13 +0100 Subject: patch 9.0.1439: start Insert mode when accessing a hidden prompt buffer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem: Start Insert mode when accessing a hidden prompt buffer. Solution: Call leaving_window() in aucmd_restbuf(). (Thorben Tröbst, closes #12148, closes #12147) --- src/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/window.c') diff --git a/src/window.c b/src/window.c index a967f9217..3405285c0 100644 --- a/src/window.c +++ b/src/window.c @@ -2292,7 +2292,7 @@ win_equal_rec( } #ifdef FEAT_JOB_CHANNEL - static void + void leaving_window(win_T *win) { // Only matters for a prompt window. -- cgit v1.2.1