ref: de46bc97fadf289243db859bafec1d674ba7f51b
parent: f0c062694514c62149245f184616987e0499952d
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Thu Jul 26 13:28:14 EDT 2012
rio: dont shift window out to the left when its too wide for the screen
--- a/sys/src/cmd/rio/wctl.c
+++ b/sys/src/cmd/rio/wctl.c
@@ -153,13 +153,13 @@
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;
}
}
--
⑨