Tweak for code clarity.
This commit is contained in:
parent
6d5cb16ef3
commit
0c29d104b1
|
@ -116,7 +116,7 @@ impl LineFormatter {
|
|||
|
||||
// Check if we found the horizontal position on this line,
|
||||
// and set it if so.
|
||||
if hpos_char_idx == None && horizontal < (pos.1 + width) {
|
||||
if hpos_char_idx == None && (pos.1 + width) > horizontal {
|
||||
hpos_char_idx = Some(i);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user