diff options
author | sos <sos@FreeBSD.org> | 1996-09-04 22:24:19 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 1996-09-04 22:24:19 +0000 |
commit | 741f1cebaf61f798f750ea442f819208c87f8b89 (patch) | |
tree | 24e28b1422eaddf2e3ce5d3fdb0dd88137c662bc /sys/isa | |
parent | 4813de2fb3eab1dc96d3b10555ee82fc0e5e120f (diff) | |
download | FreeBSD-src-741f1cebaf61f798f750ea442f819208c87f8b89.zip FreeBSD-src-741f1cebaf61f798f750ea442f819208c87f8b89.tar.gz |
Fixed a panic when switching to 40x25 mode, and cursor was beyond the
new buffer.
Diffstat (limited to 'sys/isa')
-rw-r--r-- | sys/isa/syscons.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/isa/syscons.c b/sys/isa/syscons.c index f59f063..6a635ad 100644 --- a/sys/isa/syscons.c +++ b/sys/isa/syscons.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: syscons.c,v 1.162 1996/08/28 18:20:22 bde Exp $ + * $Id: syscons.c,v 1.163 1996/09/01 18:16:05 sos Exp $ */ #include "sc.h" @@ -1488,6 +1488,7 @@ static void clear_screen(scr_stat *scp) { move_crsr(scp, 0, 0); + scp->cursor_oldpos = scp->cursor_pos; fillw(scp->term.cur_color | scr_map[0x20], scp->scr_buf, scp->xsize * scp->ysize); mark_all(scp); |