summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-25 17:40:08 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-25 17:40:08 +0800
commit37ca2e52ffe3986eb4cf57fb825926426a753245 (patch)
treeac22e18428356903d8a86365db5851ef4ef0a0e9
parent222cc56e375934b18a4fc886ca3a769e4df58f73 (diff)
downloadpttbbs-37ca2e52ffe3986eb4cf57fb825926426a753245.tar
pttbbs-37ca2e52ffe3986eb4cf57fb825926426a753245.tar.gz
pttbbs-37ca2e52ffe3986eb4cf57fb825926426a753245.tar.bz2
pttbbs-37ca2e52ffe3986eb4cf57fb825926426a753245.tar.lz
pttbbs-37ca2e52ffe3986eb4cf57fb825926426a753245.tar.xz
pttbbs-37ca2e52ffe3986eb4cf57fb825926426a753245.tar.zst
pttbbs-37ca2e52ffe3986eb4cf57fb825926426a753245.zip
remove annoying bell()
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1849 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/read.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/mbbsd/read.c b/mbbsd/read.c
index b059ffac..4a110b40 100644
--- a/mbbsd/read.c
+++ b/mbbsd/read.c
@@ -237,14 +237,10 @@ cursor_pos(keeploc_t * locmem, int val, int from_top)
cursor_show(3 , 0);
return DONOTHING;
}
- if (val > last_line) {
- bell();
+ if (val > last_line)
val = last_line;
- }
- if (val <= 0) {
- bell();
+ if (val <= 0)
val = 1;
- }
if (val >= top && val < top + p_lines) {
cursor_clear(3 + locmem->crs_ln - top, 0);
locmem->crs_ln = val;