summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-27 22:10:56 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-27 22:10:56 +0800
commita3b8cfb9f5e83a3bc36df261d8f083592608554b (patch)
tree781458efd2ec3baa151f2b2d536c5458c1062339 /mbbsd
parentc18caaedbea09d88da4ed7df56b0508251b5901c (diff)
downloadpttbbs-a3b8cfb9f5e83a3bc36df261d8f083592608554b.tar
pttbbs-a3b8cfb9f5e83a3bc36df261d8f083592608554b.tar.gz
pttbbs-a3b8cfb9f5e83a3bc36df261d8f083592608554b.tar.bz2
pttbbs-a3b8cfb9f5e83a3bc36df261d8f083592608554b.tar.lz
pttbbs-a3b8cfb9f5e83a3bc36df261d8f083592608554b.tar.xz
pttbbs-a3b8cfb9f5e83a3bc36df261d8f083592608554b.tar.zst
pttbbs-a3b8cfb9f5e83a3bc36df261d8f083592608554b.zip
hobit fixed IV :p
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1875 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/read.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/mbbsd/read.c b/mbbsd/read.c
index 86758e78..02f86b08 100644
--- a/mbbsd/read.c
+++ b/mbbsd/read.c
@@ -417,8 +417,13 @@ i_read_key(onekey_t * rcmdlist, keeploc_t * locmem,
do {
if((mode=cursor_pos(locmem, new_ln, new_top))!=DONOTHING)
return mode;
+
if(default_ch)
+ {
+ if(new_ln != locmem->crs_ln)
+ {default_ch=0; return FULLUPDATE;} // move fault
ch = default_ch;
+ }
else
ch = igetch();
@@ -653,9 +658,8 @@ i_read_key(onekey_t * rcmdlist, keeploc_t * locmem,
new_ln = thread(locmem, AUTHOR_NEXT);
break;
}
- if(new_ln != locmem->crs_ln)
- {mode=DONOTHING; default_ch = 'r';}
- else {mode = FULLUPDATE; default_ch = 0;}
+ mode = DONOTHING; default_ch = 'r';
+
}
else {default_ch = 0; lastmode=0;}
} //end if (func != NULL)