aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ui.c
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2015-01-09 09:51:11 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2015-01-12 09:47:41 -0300
commitd992213678ecd14902ae74ff765e682fb76d5ad9 (patch)
tree4d168ce56813e7ffd588606ca1243665e92ea66a /src/nvim/ui.c
parentabc147a9775ef7de221443ff68ddfbc8ff6e0177 (diff)
downloadrneovim-d992213678ecd14902ae74ff765e682fb76d5ad9.tar.gz
rneovim-d992213678ecd14902ae74ff765e682fb76d5ad9.tar.bz2
rneovim-d992213678ecd14902ae74ff765e682fb76d5ad9.zip
ui: Reimplement `:suspend` command for remote UIs.
- Remove suspend method from the UI protocol - Handle `:suspend` by disconnecting the last channel that sent a request to nvim.
Diffstat (limited to 'src/nvim/ui.c')
-rw-r--r--src/nvim/ui.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nvim/ui.c b/src/nvim/ui.c
index da47080045..5bd4382483 100644
--- a/src/nvim/ui.c
+++ b/src/nvim/ui.c
@@ -117,9 +117,7 @@ void ui_write(uint8_t *s, int len)
*/
void ui_suspend(void)
{
- if (abstract_ui) {
- UI_CALL(suspend);
- } else {
+ if (!abstract_ui) {
mch_suspend();
}
}