Article View: net.bugs
Article #239vi bug
From: Robert Lake
Date: Thu, 19 Jul 1984 21:08
Date: Thu, 19 Jul 1984 21:08
33 lines
1523 bytes
1523 bytes
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
Technical Details
Message-ID:
<134@cavell.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!mgnetp!ihnp4!alberta!cavell!lakeShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site cavell.UUCP Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!mgnetp!ihnp4!alberta!cavell!lake From: lake@cavell.UUCP (Robert Lake) Newsgroups: net.bugs Subject: vi bug Message-ID: <134@cavell.UUCP> Date: Thu, 19-Jul-84 17:08:55 EDT Article-I.D.: cavell.134 Posted: Thu Jul 19 17:08:55 1984 Date-Received: Fri, 20-Jul-84 04:45:05 EDT Distribution: net Organization: U. of Alberta, Edmonton, AB Lines: 33