diff options
author | Bram Moolenaar <Bram@vim.org> | 2007-09-05 19:47:23 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2007-09-05 19:47:23 +0000 |
commit | 9c8791fde0dc9f8821db48a7ccf373fe90d506d9 (patch) | |
tree | 1a109da6e3f4caa4fb16c0d9ba18610842a4f09d /src/getchar.c | |
parent | 102e3a6164717521e3718b7afcd72820e8bae1fc (diff) | |
download | vim-git-9c8791fde0dc9f8821db48a7ccf373fe90d506d9.tar.gz |
updated for version 7.1-095v7.1.095
Diffstat (limited to 'src/getchar.c')
-rw-r--r-- | src/getchar.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/getchar.c b/src/getchar.c index 23611a118..f77ddc2a8 100644 --- a/src/getchar.c +++ b/src/getchar.c @@ -1596,8 +1596,15 @@ vgetc() continue; } #endif - #ifdef FEAT_GUI + /* The caller doesn't need to know that the focus event is delayed + * until getting a character. */ + if (c == K_FOCUSGAINED || c == K_FOCUSLOST) + { + ui_focus_change(c == K_FOCUSGAINED); + continue; + } + /* Translate K_CSI to CSI. The special key is only used to avoid * it being recognized as the start of a special key. */ if (c == K_CSI) |