lake@cavell.UUCP (Robert Lake) (07/20/84)
Description: Windowing back with a count greater than 1 fails. Repeat-By: Preceding a CTRL-b by a count greater than 1 (e.g. 3CTRL-b) either results in the cursor addressing the wrong line, or a core dump. Occurs with version 7.3 of ex_vmain.c on our 4.2 system. Fix: The fix to this problem is trivial. Edit ex_vmain.c and make the following change: ex_vmain.c.old: case CTRL(b): vsave(); if (one + vcline != dot && vcnt > 2) { -> addr = dot - vcline + 2 + (cnt-1)*basWLINES; forbid (addr <= zero); dot = addr; vcnt = vcline = 0; } ============================================================================ ex_vmain.c.new: case CTRL(b): vsave(); if (one + vcline != dot && vcnt > 2) { -> addr = dot - vcline + 2 - (cnt-1)*basWLINES; forbid (addr <= zero); dot = addr; vcnt = vcline = 0; } ============================================================================ Robert Lake (alberta!lake) University of Alberta