From b27c562b9841e76f578bf404d870abd1e3391a67 Mon Sep 17 00:00:00 2001 From: Yourtion Date: Wed, 11 May 2016 14:57:20 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E9=BC=A0=E6=A0=87=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E7=AA=97=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 24_day/bootpack.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/24_day/bootpack.c b/24_day/bootpack.c index f24570d..0bff4b5 100644 --- a/24_day/bootpack.c +++ b/24_day/bootpack.c @@ -282,6 +282,11 @@ void HariMain(void) if (0 <= x && x < sht->bxsize && 0 <= y && y < sht->bysize) { if (sht->buf[y * sht->bxsize + x] != sht->col_inv) { sheet_updown(sht, shtctl->top - 1); + if (sht != key_win) { + cursor_c = keywin_off(key_win, sht_win, cursor_c, cursor_x); + key_win = sht; + cursor_c = keywin_on(key_win, sht_win, cursor_c);/*到此结束*/ + } if (3 <= x && x < sht->bxsize - 3 && 3 <= y && y < 21) { mmx = mx; /*进入窗口移动模式*/ mmy = my;