aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/acme/text.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-06-09 14:01:43 +0000
committerrsc <devnull@localhost>2004-06-09 14:01:43 +0000
commitc16f1f733b5748211db515fa19dd821065fd6fc7 (patch)
treeb3c9867c872f5cbb426f8e4bd7eea8a0113bf016 /src/cmd/acme/text.c
parentff8bbc7987bd23cffd029d5968e76dbdeb67c7fa (diff)
Buttons 4 and 5.
Diffstat (limited to 'src/cmd/acme/text.c')
-rw-r--r--src/cmd/acme/text.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/cmd/acme/text.c b/src/cmd/acme/text.c
index 37613d80..a69b46fe 100644
--- a/src/cmd/acme/text.c
+++ b/src/cmd/acme/text.c
@@ -224,8 +224,6 @@ textload(Text *t, uint q0, char *file, int setqid)
dbuf = nil;
while((n=dirread(fd, &dbuf)) > 0){
for(i=0; i<n; i++){
- if(nodotfiles && dbuf[i].name[0] == '.')
- continue;
dl = emalloc(sizeof(Dirlist));
j = strlen(dbuf[i].name);
tmp = emalloc(j+1+1);
@@ -660,6 +658,9 @@ texttype(Text *t, Rune r)
case Kdown:
n = t->fr.maxlines/3;
goto case_Down;
+ case Kscrollonedown:
+ n = 1;
+ goto case_Down;
case Kpgdown:
n = 2*t->fr.maxlines/3;
case_Down:
@@ -669,6 +670,9 @@ texttype(Text *t, Rune r)
case Kup:
n = t->fr.maxlines/3;
goto case_Up;
+ case Kscrolloneup:
+ n = 2; /* feels like this should be n=1, but that does nothing */
+ goto case_Up;
case Kpgup:
n = 2*t->fr.maxlines/3;
case_Up: