diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2015-01-09 09:51:11 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2015-01-12 09:47:41 -0300 |
commit | d992213678ecd14902ae74ff765e682fb76d5ad9 (patch) | |
tree | 4d168ce56813e7ffd588606ca1243665e92ea66a /src/nvim/globals.h | |
parent | abc147a9775ef7de221443ff68ddfbc8ff6e0177 (diff) | |
download | rneovim-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/globals.h')
-rw-r--r-- | src/nvim/globals.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/globals.h b/src/nvim/globals.h index 11a7e9ecac..854dd33552 100644 --- a/src/nvim/globals.h +++ b/src/nvim/globals.h @@ -1245,6 +1245,9 @@ EXTERN int curr_tmode INIT(= TMODE_COOK); /* contains current terminal mode */ EXTERN bool embedded_mode INIT(= false); // Using the "abstract_ui" termcap EXTERN bool abstract_ui INIT(= false); +// Id of the last channel sent a message to nvim. Used to determine the target +// of channel-specific actions such as suspending +EXTERN uint64_t last_message_source INIT(= 0); /// Used to track the status of external functions. /// Currently only used for iconv(). |