Change mouse cursor to arrow when outside window

This commit is contained in:
Bjorn Winckler
2010-07-26 18:58:38 +02:00
parent 51e86fbc86
commit 4efc4c32a7
+9
View File
@@ -4782,8 +4782,17 @@ xy2win(x, y)
row = Y_2_ROW(y);
col = X_2_COL(x);
# ifdef FEAT_GUI_MACVIM
/* Mouse cursor should always be an arrow when outside all windows */
if (row < 0 || col < 0 || col >= Columns || row >= Rows)
{
update_mouseshape(SHAPE_IDX_N);
return NULL;
}
# else
if (row < 0 || col < 0) /* before first window */
return NULL;
# endif
wp = mouse_find_win(&row, &col);
# ifdef FEAT_MOUSESHAPE
if (State == HITRETURN || State == ASKMORE)