summaryrefslogtreecommitdiffstats
path: root/mbbsd/edit.c
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-08-28 04:46:18 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-08-28 04:46:18 +0800
commit72108976629fbf0b80aed7ff961d2f60adf823f2 (patch)
tree7c43a223135682cc02c7285ddb1ff4d1c18c2b2b /mbbsd/edit.c
parentecbb2c5cc04aef9c86905a822944686d2b796711 (diff)
downloadpttbbs-72108976629fbf0b80aed7ff961d2f60adf823f2.tar
pttbbs-72108976629fbf0b80aed7ff961d2f60adf823f2.tar.gz
pttbbs-72108976629fbf0b80aed7ff961d2f60adf823f2.tar.bz2
pttbbs-72108976629fbf0b80aed7ff961d2f60adf823f2.tar.lz
pttbbs-72108976629fbf0b80aed7ff961d2f60adf823f2.tar.xz
pttbbs-72108976629fbf0b80aed7ff961d2f60adf823f2.tar.zst
pttbbs-72108976629fbf0b80aed7ff961d2f60adf823f2.zip
fix top_of_win problem in block_delete().
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3094 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/edit.c')
-rw-r--r--mbbsd/edit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/edit.c b/mbbsd/edit.c
index 0a0f57c4..4f047e96 100644
--- a/mbbsd/edit.c
+++ b/mbbsd/edit.c
@@ -1805,7 +1805,7 @@ block_delete(void)
textline_t *p;
if (curr_buf->currln >= curr_buf->blockln) {
- curr_buf->curr_window_line -= (curr_buf->currln - curr_buf->blockln);
+ curr_buf->curr_window_line -= (curr_buf->currln - curr_buf->blockln + 1);
if (curr_buf->curr_window_line < 0) {
curr_buf->curr_window_line = 0;
if (end->next)