summaryrefslogtreecommitdiff
path: root/sys/src/cmd/rio
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2012-07-26 17:28:14 +0200
committercinap_lenrek <cinap_lenrek@gmx.de>2012-07-26 17:28:14 +0200
commit98b9c4eb1ef0907ee596cc2ddd19beb03427a062 (patch)
treec715a5689cb94ce7be08d3014b15d77bc507ed5f /sys/src/cmd/rio
parent6023250c468b1ee4baafa0562cc2215f939a0c28 (diff)
rio: dont shift window out to the left when its too wide for the screen
Diffstat (limited to 'sys/src/cmd/rio')
-rw-r--r--sys/src/cmd/rio/wctl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/src/cmd/rio/wctl.c b/sys/src/cmd/rio/wctl.c
index 07b882c9f..2e91b0e7c 100644
--- a/sys/src/cmd/rio/wctl.c
+++ b/sys/src/cmd/rio/wctl.c
@@ -153,14 +153,14 @@ newrect(void)
void
shift(int *minp, int *maxp, int min, int max)
{
- if(*minp < min){
- *maxp += min-*minp;
- *minp = min;
- }
if(*maxp > max){
*minp += max-*maxp;
*maxp = max;
}
+ if(*minp < min){
+ *maxp += min-*minp;
+ *minp = min;
+ }
}
Rectangle