aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/acme
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/acme')
-rw-r--r--src/cmd/acme/acme.c4
-rw-r--r--src/cmd/acme/cols.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/acme/acme.c b/src/cmd/acme/acme.c
index 87924caa..fbfb9f14 100644
--- a/src/cmd/acme/acme.c
+++ b/src/cmd/acme/acme.c
@@ -45,7 +45,7 @@ Command *command;
void acmeerrorinit(void);
void readfile(Column*, char*);
-int shutdown(void*, char*);
+static int shutdown(void*, char*);
void
derror(Display *d, char *errorstr)
@@ -270,7 +270,7 @@ char *oknotes[] ={
int dumping;
-int
+static int
shutdown(void *v, char *msg)
{
int i;
diff --git a/src/cmd/acme/cols.c b/src/cmd/acme/cols.c
index 14a715b3..6ad3058e 100644
--- a/src/cmd/acme/cols.c
+++ b/src/cmd/acme/cols.c
@@ -472,7 +472,7 @@ coldragwin(Column *c, Window *w, int but)
}
/* is it a flick to the right? */
if(abs(p.y-op.y)<10 && p.x>op.x+30 && rowwhichcol(c->row, p)==c)
- p.x += Dx(w->r); /* yes: toss to next column */
+ p.x = op.x+Dx(w->r); /* yes: toss to next column */
nc = rowwhichcol(c->row, p);
if(nc!=nil && nc!=c){
colclose(c, w, FALSE);