mirror of
https://github.com/helix-editor/helix.git
synced 2025-04-04 03:17:45 +03:00
feat: increase padding by 1
This commit is contained in:
parent
55ef555f87
commit
a51334f00b
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ impl EditorView {
|
|||
let y_center = view.area.x + view.area.width / 2;
|
||||
|
||||
let x_start_left =
|
||||
view.area.x + (view.area.width / 2).saturating_sub(longest_left as u16 / 2) + 1;
|
||||
view.area.x + (view.area.width / 2).saturating_sub(longest_left as u16 / 2) + 2;
|
||||
|
||||
let has_x_left_overflow = (x_start_left + longest_left as u16) > view.area.width;
|
||||
let has_x_center_overflow = longest_center as u16 > view.area.width;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue