Mercurial > vim
diff src/getchar.c @ 1380:99a9e42e5688 v7.1.095
updated for version 7.1-095
author | vimboss |
---|---|
date | Wed, 05 Sep 2007 19:47:23 +0000 |
parents | f89c43568067 |
children | bdcfe793d49f |
line wrap: on
line diff
--- 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)