acme win: Delete on Del (experiment)
[rsc] --rw-rw-r-- M 1061556 glenda sys 12447 Mar 23 10:13 acme/bin/source/win/main.c
/n/sourcesdump/2006/0323/plan9/acme/bin/source/win/main.c:106,119 -
/n/sourcesdump/2006/0324/plan9/acme/bin/source/win/main.c:106,114
{
while(*s==' ' || *s=='\t' || *s=='\n')
s++;
- if(strcmp(s, "Delete")==0){
+ if(strcmp(s, "Delete")==0 || strcmp(s, "Del")==0){
windel(w, 1);
threadexitsall(nil);
- return 1;
- }
- if(strcmp(s, "Del")==0){
- if(windel(w, 0))
- threadexitsall(nil);
return 1;
}
if(EQUAL(s, "scroll")){
|