diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-08-28 01:27:57 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-09-05 15:01:06 +0200 |
commit | b6b6e4a96f37ba6a54d194ecbc042d5ef7d595e6 (patch) | |
tree | a2325b8f194daceab79e038ea58105634b4d48d9 /src/nvim/normal.c | |
parent | ce852bab04c63262ce8545c01a4ff4fc827148a1 (diff) | |
download | rneovim-b6b6e4a96f37ba6a54d194ecbc042d5ef7d595e6.tar.gz rneovim-b6b6e4a96f37ba6a54d194ecbc042d5ef7d595e6.tar.bz2 rneovim-b6b6e4a96f37ba6a54d194ecbc042d5ef7d595e6.zip |
eventloop: FocusGained: schedule event instead of pseudokey
closes #4840
closes #6164
Diffstat (limited to 'src/nvim/normal.c')
-rw-r--r-- | src/nvim/normal.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c index f9017164af..6415bec846 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -345,8 +345,6 @@ static const struct nv_cmd { { K_F8, farsi_f8, 0, 0 }, { K_F9, farsi_f9, 0, 0 }, { K_EVENT, nv_event, NV_KEEPREG, 0 }, - { K_FOCUSGAINED, nv_focusgained, NV_KEEPREG, 0 }, - { K_FOCUSLOST, nv_focuslost, NV_KEEPREG, 0 }, }; /* Number of commands in nv_cmds[]. */ @@ -7961,18 +7959,6 @@ static void nv_event(cmdarg_T *cap) finish_op = false; } -/// Trigger FocusGained event. -static void nv_focusgained(cmdarg_T *cap) -{ - apply_autocmds(EVENT_FOCUSGAINED, NULL, NULL, false, curbuf); -} - -/// Trigger FocusLost event. -static void nv_focuslost(cmdarg_T *cap) -{ - apply_autocmds(EVENT_FOCUSLOST, NULL, NULL, false, curbuf); -} - /* * Return TRUE when 'mousemodel' is set to "popup" or "popup_setpos". */ |