Don't return Results from position methods in FoldMap and DisplayMap
This commit is contained in:
committed by
Antonio Scandurra
parent
72b98ad688
commit
b3d2a70834
@@ -569,7 +569,7 @@ impl PaintState {
|
||||
let column = if x >= 0.0 {
|
||||
line.index_for_x(x)
|
||||
.map(|ix| ix as u32)
|
||||
.unwrap_or(view.line_len(row, app).unwrap())
|
||||
.unwrap_or(view.line_len(row, app))
|
||||
} else {
|
||||
0
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user