Diffstat (limited to 'src/ui/popup.rs')
| -rw-r--r-- | src/ui/popup.rs | 4 |
|
1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ui/popup.rs b/src/ui/popup.rs index 2261a8e..116f6a4 100644 --- a/src/ui/popup.rs +++ b/src/ui/popup.rs @@ -72,7 +72,9 @@ }; // Horizontal scrolling when password is to long let string_offset = password.len().saturating_sub(input_chunks[0].width.saturating_sub(1) as usize); let string_offset = password .len() .saturating_sub(input_chunks[0].width.saturating_sub(1) as usize); if string_offset > 0 { password = password.split_at(string_offset).1.to_string(); }
