diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2015-01-12 10:13:51 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-01-12 10:13:51 -0500 |
commit | 4c55c34efaabaa151391edf59c59a14411a79d8c (patch) | |
tree | 47e1caa73bf442035dc3a929c866c27df778dc2b /src/nvim/ex_docmd.c | |
parent | c53852a244fd78bcf11e37ddc94e8a847e80062a (diff) | |
parent | 62c1daffe028185030d0d8e95dc2c6532457b4fa (diff) | |
download | rneovim-4c55c34efaabaa151391edf59c59a14411a79d8c.tar.gz rneovim-4c55c34efaabaa151391edf59c59a14411a79d8c.tar.bz2 rneovim-4c55c34efaabaa151391edf59c59a14411a79d8c.zip |
Merge pull request #1657 from tarruda/abstract-ui-fixes
[WIP] "abstract_ui" fixes and improvements
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r-- | src/nvim/ex_docmd.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index 3661a65b11..b794ced428 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -71,6 +71,7 @@ #include "nvim/os/time.h" #include "nvim/ex_cmds_defs.h" #include "nvim/mouse.h" +#include "nvim/msgpack_rpc/channel.h" static int quitmore = 0; static int ex_pressedreturn = FALSE; @@ -5398,10 +5399,16 @@ static void ex_stop(exarg_T *eap) /* * Disallow suspending for "rvim". */ - if (!check_restricted() - ) { - if (!eap->forceit) + if (!check_restricted()) { + if (!eap->forceit) { autowrite_all(); + } + + if (abstract_ui) { + channel_close(last_message_source); + return; + } + windgoto((int)Rows - 1, 0); out_char('\n'); out_flush(); |