Tweak for code clarity.

This commit is contained in:
Nathan Vegdahl 2020-02-17 07:46:27 +09:00
parent 6d5cb16ef3
commit 0c29d104b1

View File

@ -116,7 +116,7 @@ impl LineFormatter {
// Check if we found the horizontal position on this line, // Check if we found the horizontal position on this line,
// and set it if so. // 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); hpos_char_idx = Some(i);
} }