summaryrefslogtreecommitdiffstats
path: root/src/cmd/acme/dat.h
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2011-08-02 07:44:11 -0400
committerRuss Cox <rsc@swtch.com>2011-08-02 07:44:11 -0400
commit76864eb6cd2759efd687f392ada4f1facbf06250 (patch)
treed85cc2325a5ece172f0575ae20b58943a19f0480 /src/cmd/acme/dat.h
parent67afaf385afa5a2bcc6b7640d7cec6cd5d17863e (diff)
downloadplan9port-76864eb6cd2759efd687f392ada4f1facbf06250.tar.gz
plan9port-76864eb6cd2759efd687f392ada4f1facbf06250.zip
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 <home> scrolls to the beginning of the ls -l output. A second <home> 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
Diffstat (limited to 'src/cmd/acme/dat.h')
-rw-r--r--src/cmd/acme/dat.h1
1 files changed, 1 insertions, 0 deletions
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 */