summaryrefslogtreecommitdiffstats
path: root/mbbsd/io.c
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-09-11 11:22:50 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-09-11 11:22:50 +0800
commitf190a09af728c61ad2118cf908c6d831e8a594cf (patch)
treeda785613b2cd19fcfc2653756f0c26e6ee8a8d15 /mbbsd/io.c
parent180efb41330e92d1eb5f44cbb3a7a8e5e48967b3 (diff)
downloadpttbbs-f190a09af728c61ad2118cf908c6d831e8a594cf.tar
pttbbs-f190a09af728c61ad2118cf908c6d831e8a594cf.tar.gz
pttbbs-f190a09af728c61ad2118cf908c6d831e8a594cf.tar.bz2
pttbbs-f190a09af728c61ad2118cf908c6d831e8a594cf.tar.lz
pttbbs-f190a09af728c61ad2118cf908c6d831e8a594cf.tar.xz
pttbbs-f190a09af728c61ad2118cf908c6d831e8a594cf.tar.zst
pttbbs-f190a09af728c61ad2118cf908c6d831e8a594cf.zip
fix screen rotate bug when returning from Ctrl-U
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@517 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/io.c')
-rw-r--r--mbbsd/io.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mbbsd/io.c b/mbbsd/io.c
index 721b54a2..82895f28 100644
--- a/mbbsd/io.c
+++ b/mbbsd/io.c
@@ -1,4 +1,4 @@
-/* $Id: io.c,v 1.22 2002/07/22 19:02:00 in2 Exp $ */
+/* $Id: io.c,v 1.23 2002/09/11 03:22:50 kcwu Exp $ */
#include "bbs.h"
#if defined(linux)
@@ -161,6 +161,7 @@ igetch()
&& currutmp->mode != LUSERS && currutmp->mode) {
screenline_t *screen0 = calloc(t_lines, sizeof(screenline_t));
+ int oldroll = roll;
int y, x, my_newfd;
getyx(&y, &x);
@@ -170,6 +171,7 @@ igetch()
t_users();
i_newfd = my_newfd;
memcpy(big_picture, screen0, t_lines * sizeof(screenline_t));
+ roll = oldroll;
move(y, x);
free(screen0);
redoscr();