Skip to content

Commit

Permalink
fix hint position when using contrast=1 and position off_left
Browse files Browse the repository at this point in the history
  • Loading branch information
Federico-Ciuffardi authored and fcsonline committed Jan 19, 2021
1 parent 187cce8 commit 027ded9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ impl<'a> View<'a> {
if let Some(ref hint) = mat.hint {
let extra_position = match self.position {
"right" => text.width_cjk() - hint.len(),
"off_left" => 0 - hint.len(),
"off_left" => 0 - hint.len() - if self.contrast { 2 } else { 0 },
"off_right" => text.width_cjk(),
_ => 0,
};
Expand Down

0 comments on commit 027ded9

Please sign in to comment.