diff options
author | Roberto E. Vargas Caballero <k0ga@shike2.com> | 2020-01-19 18:36:50 +0100 |
---|---|---|
committer | Roberto E. Vargas Caballero <k0ga@shike2.com> | 2020-01-19 18:36:50 +0100 |
commit | b099753597d2c3b3d150c686df5c16310168477e (patch) | |
tree | 9937982e026137675bed3690f32143572b4a5d83 /sys/src/cmd/acme/util.c | |
parent | 639500b7487174176e315c25499cfabdd4a4af3c (diff) |
acme: Restore call to movetodel() in colclose
Diffstat (limited to 'sys/src/cmd/acme/util.c')
-rw-r--r-- | sys/src/cmd/acme/util.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/src/cmd/acme/util.c b/sys/src/cmd/acme/util.c index bf00a9e65..44f77192e 100644 --- a/sys/src/cmd/acme/util.c +++ b/sys/src/cmd/acme/util.c @@ -367,12 +367,18 @@ savemouse(Window *w) mousew = w; } -void +int restoremouse(Window *w) { - if(mousew!=nil && mousew==w) + int did; + + did = 0; + if(mousew!=nil && mousew==w) { moveto(mousectl, prevmouse); + did = 1; + } mousew = nil; + return did; } void |