Skip to content

Commit

Permalink
Fix terminal resize
Browse files Browse the repository at this point in the history
  • Loading branch information
x0k committed Jun 6, 2024
1 parent dea16df commit fe0ecf7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/editor/panel/panel.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@
}
cancelAnimationFrame(resizeFrameId)
resizeFrameId = requestAnimationFrame(() => {
// Fix the terminal resize to the smaller height
term.resize(term.cols, 1)
fitAddon.fit()
})
return () => {
Expand Down

0 comments on commit fe0ecf7

Please sign in to comment.