diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2017-09-06 07:25:01 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-09-06 07:25:01 +0200 |
| commit | 51808a244ecaa0a40b4e8280938333d2792d8422 (patch) | |
| tree | 722b303136a2dec83f3f4f14ee0b5d3aa62fa559 /src/nvim/normal.c | |
| parent | 82795c2c3a429b2725af882cad4317bed8f1b741 (diff) | |
| parent | b9d6bda53126433cbb251b47d8788d92cda9e6e4 (diff) | |
| download | rneovim-51808a244ecaa0a40b4e8280938333d2792d8422.tar.gz rneovim-51808a244ecaa0a40b4e8280938333d2792d8422.tar.bz2 rneovim-51808a244ecaa0a40b4e8280938333d2792d8422.zip | |
Merge #7221 from justinmk/ev-focusgained
tui: schedule event instead of <FocusGained> pseudokey
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". */ |