chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d001264
)
otterlib: Show three views only for first two faces
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 15 May 2022 01:46:43 +0000
(
02:46
+0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 15 May 2022 01:46:43 +0000
(
02:46
+0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/bin/otterlib.rs
patch
|
blob
|
history
diff --git
a/src/bin/otterlib.rs
b/src/bin/otterlib.rs
index 92996792c506461c41fad53a69a8af8038e560c3..4337245afe01d06f5394f722c62a1610599bcf32 100644
(file)
--- a/
src/bin/otterlib.rs
+++ b/
src/bin/otterlib.rs
@@
-94,8
+94,8
@@
fn preview(opts: &Opts, items: Vec<ItemForOutput>) {
fn face_want_span(&self) -> usize {
if self.large() { 4 } else { 1 }
}
- fn face_want_several(&self,
_
face: RawFaceId) -> usize {
- if self.large() { 1 } else { SEVERAL }
+ fn face_want_several(&self, face: RawFaceId) -> usize {
+ if self.large()
|| face >= 2
{ 1 } else { SEVERAL }
}
fn face_want_cols(&self, face: RawFaceId) -> usize {
self.face_want_several(face) *