diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-05-31 13:49:04 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-05-31 13:49:04 -0400 |
commit | 3dd3d129d3a4644c3f2c4de4df4b2ceda380448e (patch) | |
tree | 0c7358f88da7baec437c89f937e105a1e8adfbf9 /src/nvim/state.c | |
parent | 4276a03e8185e9498e4b7983bf02e151c4b4b197 (diff) | |
parent | 77540a04582927e842c7d5522bb862756da2cbba (diff) | |
download | rneovim-3dd3d129d3a4644c3f2c4de4df4b2ceda380448e.tar.gz rneovim-3dd3d129d3a4644c3f2c4de4df4b2ceda380448e.tar.bz2 rneovim-3dd3d129d3a4644c3f2c4de4df4b2ceda380448e.zip |
Merge pull request #4844 from ZyX-I/rename-main-loop
Rename main loop variable from loop to main_loop
Diffstat (limited to 'src/nvim/state.c')
-rw-r--r-- | src/nvim/state.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/state.c b/src/nvim/state.c index b2f3f0bebe..30133e2201 100644 --- a/src/nvim/state.c +++ b/src/nvim/state.c @@ -4,6 +4,7 @@ #include "nvim/state.h" #include "nvim/vim.h" +#include "nvim/main.h" #include "nvim/getchar.h" #include "nvim/ui.h" #include "nvim/os/input.h" @@ -32,7 +33,7 @@ getkey: // processing. Characters can come from mappings, scripts and other // sources, so this scenario is very common. key = safe_vgetc(); - } else if (!queue_empty(loop.events)) { + } else if (!queue_empty(main_loop.events)) { // Event was made available after the last queue_process_events call key = K_EVENT; } else { @@ -45,7 +46,7 @@ getkey: // directly. (void)os_inchar(NULL, 0, -1, 0); input_disable_events(); - key = !queue_empty(loop.events) ? K_EVENT : safe_vgetc(); + key = !queue_empty(main_loop.events) ? K_EVENT : safe_vgetc(); } if (key == K_EVENT) { |