🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Robert Lake Thu, 19 Jul 1984 21:08
vi bug
#239
Author: Robert Lake
Date: Thu, 19 Jul 1984 21:08
33 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads