mirror of
https://github.com/FliegendeWurst/tmux-thumbs.git
synced 2024-11-22 12:54:59 +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 {
|
if let Some(ref hint) = mat.hint {
|
||||||
let extra_position = match self.position {
|
let extra_position = match self.position {
|
||||||
"right" => text.width_cjk() - hint.len(),
|
"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(),
|
"off_right" => text.width_cjk(),
|
||||||
_ => 0,
|
_ => 0,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user