summaryrefslogtreecommitdiffstats
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-06-06 09:11:12 +0200
committerBram Moolenaar <Bram@vim.org>2018-06-06 09:11:12 +0200
commit6d41c78e353b630bc1a72cbff9160311d2a81e8c (patch)
tree4ed89d974b7ce1e69ae848bfea2802605c748453 /src/ex_docmd.c
parentadb8fbec4f4059d214fe6acf2485ffd35e803450 (diff)
patch 8.1.0035: not easy to switch between prompt buffer and other windowsv8.1.0035
Problem: Not easy to switch between prompt buffer and other windows. Solution: Accept CTRL-W commands in Insert mode. Start and stop Insert mode as one would expect.
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r--src/ex_docmd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 82dd0491d4..342dec2229 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -7341,7 +7341,8 @@ ex_close(exarg_T *eap)
{
if (eap->addr_count == 0)
ex_win_close(eap->forceit, curwin, NULL);
- else {
+ else
+ {
FOR_ALL_WINDOWS(win)
{
winnr++;