mirror of
https://github.com/FliegendeWurst/tmux-thumbs.git
synced 2024-11-08 15:30:37 +00:00
fix hint position when using contrast=1 and position off_left
This commit is contained in:
parent
187cce81d2
commit
027ded9339
@ -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,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user