From 0c29d104b135e694bf7351db92b2a34e01d13bfd Mon Sep 17 00:00:00 2001 From: Nathan Vegdahl Date: Mon, 17 Feb 2020 07:46:27 +0900 Subject: [PATCH] Tweak for code clarity. --- src/formatter.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/formatter.rs b/src/formatter.rs index 69552ad..2ebe7fc 100644 --- a/src/formatter.rs +++ b/src/formatter.rs @@ -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); }