summaryrefslogtreecommitdiff
path: root/sys/src/cmd/page.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2013-07-08 20:50:39 +0200
committercinap_lenrek <cinap_lenrek@gmx.de>2013-07-08 20:50:39 +0200
commit41c306dfdaa930e25f0315cf21e732731c9e856d (patch)
treea3d4c0f1f98496cc45a63e844006611d16df4807 /sys/src/cmd/page.c
parentbb11bb1c1f18660c29d5bc46e8de049fd03ff2a0 (diff)
page: handle combination or -w and -R flags (thanks BurnZeZ)
Diffstat (limited to 'sys/src/cmd/page.c')
-rw-r--r--sys/src/cmd/page.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/src/cmd/page.c b/sys/src/cmd/page.c
index aea34facd..e9b3260ab 100644
--- a/sys/src/cmd/page.c
+++ b/sys/src/cmd/page.c
@@ -1437,7 +1437,8 @@ main(int argc, char *argv[])
case 'P':
break;
case 'R':
- newwin = -1;
+ if(newwin == 0)
+ newwin = -1;
break;
case 'w':
newwin = 1;