summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;