Skip to content

Commit

Permalink
Fix wrong new screen size
Browse files Browse the repository at this point in the history
  • Loading branch information
dextercd committed Sep 28, 2021
1 parent 2d8465f commit b07610a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/terminal_screen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ int terminal_screen::resize(

void terminal_screen::resize(extend new_size)
{
auto replacement = terminal_screen{m_size};
auto replacement = terminal_screen{new_size};
for (auto line = 0; line < new_size.height && line < size().height; ++line) {
for (auto x = 0; x < new_size.width && x < size().width; ++x) {
replacement.lines[line].glyphs[x] = lines[line].glyphs[x];
Expand Down

0 comments on commit b07610a

Please sign in to comment.