diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-07-26 17:28:14 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-07-26 17:28:14 +0200 |
commit | 98b9c4eb1ef0907ee596cc2ddd19beb03427a062 (patch) | |
tree | c715a5689cb94ce7be08d3014b15d77bc507ed5f /sys/src/cmd/rio | |
parent | 6023250c468b1ee4baafa0562cc2215f939a0c28 (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.c | 8 |
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 |