diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2022-05-06 07:22:02 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2022-05-06 07:22:02 -0700 |
commit | de1655ccaec568b4291df01295e0cf604d2b84af (patch) | |
tree | 6dc1b84e68f4046ad181a9e6d8cade7ee611c769 | |
parent | 309c3d594de5a053aef9d9f830170d4da953da0c (diff) | |
download | pw-de1655ccaec568b4291df01295e0cf604d2b84af.tar.gz pw-de1655ccaec568b4291df01295e0cf604d2b84af.tar.bz2 pw-de1655ccaec568b4291df01295e0cf604d2b84af.zip |
Exchange [ ] and < > commands.
-rw-r--r-- | pw.1 | 8 | ||||
-rw-r--r-- | pw.c | 8 |
2 files changed, 8 insertions, 8 deletions
@@ -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. @@ -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; |