From 76864eb6cd2759efd687f392ada4f1facbf06250 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 2 Aug 2011 07:44:11 -0400 Subject: acme: scrolling fixes + new home/end Home and End previously navigated between two different window locations: the top and the bottom of the text. Now they include a third waypoint: the location where typing last happened. Thus, in a win window, typing ls -l scrolls to the beginning of the ls -l output. A second continues to the top of the file. Makes Send scroll always, along with writes by external programs to +Errors. R=r CC=mccoyst http://codereview.appspot.com/4830051 --- src/cmd/acme/dat.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/cmd/acme/dat.h') diff --git a/src/cmd/acme/dat.h b/src/cmd/acme/dat.h index 300ba65f..0da2a128 100644 --- a/src/cmd/acme/dat.h +++ b/src/cmd/acme/dat.h @@ -186,6 +186,7 @@ struct Text Row *row; Column *col; + uint iq1; /* last input position */ uint eq0; /* start of typing for ESC */ uint cq0; /* cache position */ int ncache; /* storage for insert */ -- cgit v1.2.3