diff options
author | rsc <devnull@localhost> | 2007-04-25 18:59:29 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2007-04-25 18:59:29 +0000 |
commit | 9ec61f3ede67c5df2726c9e67736fec8af6d8b80 (patch) | |
tree | 6277601b4a870719145fb019dc01f885eb8bbd58 | |
parent | 2bd7756a44882732b812c4069a26206d61bde734 (diff) | |
download | plan9port-9ec61f3ede67c5df2726c9e67736fec8af6d8b80.tar.gz plan9port-9ec61f3ede67c5df2726c9e67736fec8af6d8b80.tar.bz2 plan9port-9ec61f3ede67c5df2726c9e67736fec8af6d8b80.zip |
allow swap of column 0 with others
-rw-r--r-- | src/cmd/acme/rows.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/acme/rows.c b/src/cmd/acme/rows.c index a078a698..c60f4102 100644 --- a/src/cmd/acme/rows.c +++ b/src/cmd/acme/rows.c @@ -164,8 +164,6 @@ rowdragcol(Row *row, Column *c, int _0) error("can't find column"); Found: - if(i == 0) - return; p = mouse->xy; if((abs(p.x-op.x)<5 && abs(p.y-op.y)<5)) return; @@ -182,6 +180,8 @@ rowdragcol(Row *row, Column *c, int _0) colmousebut(c); return; } + if(i == 0) + return; d = row->col[i-1]; if(p.x < d->r.min.x+80+Scrollwid) p.x = d->r.min.x+80+Scrollwid; |