Skip to content

Commit

Permalink
adapted to OS specific differences
Browse files Browse the repository at this point in the history
  • Loading branch information
lennart-finke authored Dec 8, 2021
1 parent 517c285 commit a4f3501
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,12 @@ impl Editor {

else if let Event::Resize(width, height) = event {
self.terminal.size.width = width;
self.terminal.size.height = height - 1;
if env::consts::OS == "windows" {
self.terminal.size.height = height - 1;
}
else {
self.terminal.size.height = height - 2;
}
}


Expand Down

0 comments on commit a4f3501

Please sign in to comment.