From de1655ccaec568b4291df01295e0cf604d2b84af Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Fri, 6 May 2022 07:22:02 -0700 Subject: Exchange [ ] and < > commands. --- pw.1 | 8 ++++---- pw.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/pw.1 b/pw.1 index 04d0a24..fc2d3ce 100644 --- a/pw.1 +++ b/pw.1 @@ -173,7 +173,7 @@ Reset scroll to first column. .IP \fBCtrl-L\fP Refresh the display. -.IP "\fB[, ]\fP" +.IP "\fB<, >\fP" Adjust the left vertical split, separating the left pane of the display. The left pane is an area of the display which always shows the prefix of each line, protected from horizontal scrolling. If the line is longer than the prefix, @@ -187,14 +187,14 @@ character appears to separate the left pane from the middle pane. The left pane has a zero width by default, so that it does not appear. These commands decrease and increase its width by one character. -.IP "\fB<, >\fP" +.IP "\fB[, ]\fP" Adjust the right vertical split, separating the middle pane of the display from the right pane. The middle pane is an area of the display which always shows some middle portion of each line, protected from horizontal scrolling. It may appear together with the left split (see the -.B [ +.B < and -.B ] +.B > commands) or by itself. The .B > character separates the middle pane from the right pane. diff --git a/pw.c b/pw.c index 8311618..996c0ba 100644 --- a/pw.c +++ b/pw.c @@ -1205,7 +1205,7 @@ int main(int argc, char **argv) pw.hpos += cmdcount; pw.stat |= stat_force; break; - case ']': + case '>': if ((int) pw.vsplit1 < pw.columns - 2) { pw.vsplit1++; if (pw.vsplit2 && @@ -1214,13 +1214,13 @@ int main(int argc, char **argv) pw.stat |= stat_force; } break; - case '[': + case '<': if (pw.vsplit1 > 0) { pw.vsplit1--; pw.stat |= stat_force; } break; - case '>': + case ']': if ((int) (pw.vsplit1 + pw.vsplit2) < pw.columns - 2) { if (pw.vsplit2 == 0) pw.vs2pos = pw.hpos + pw.vsplit1; @@ -1228,7 +1228,7 @@ int main(int argc, char **argv) pw.stat |= stat_force; } break; - case '<': + case '[': if (pw.vsplit2 > 0) { pw.vsplit2--; pw.stat |= stat_force; -- cgit v1.2.3