Skip to content

Commit

Permalink
Minor fixes for resizing grid which has independent font setting
Browse files Browse the repository at this point in the history
  • Loading branch information
akiyosi committed Dec 31, 2023
1 parent d7eb91d commit f6c1a2a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions editor/screen.go
Original file line number Diff line number Diff line change
Expand Up @@ -800,8 +800,9 @@ func (s *Screen) resizeWindow(gridid gridId, cols int, rows int) {
}

win.redrawMutex.Lock()
winOldCols := win.cols
winOldRows := win.rows

// winOldCols := win.cols
// winOldRows := win.rows

win.lenLine = lenLine
win.lenContent = lenContent
Expand All @@ -813,7 +814,7 @@ func (s *Screen) resizeWindow(gridid gridId, cols int, rows int) {
win.rows = rows
win.redrawMutex.Unlock()

s.resizeIndependentFontGrid(win, winOldCols, winOldRows)
// s.resizeIndependentFontGrid(win, winOldCols, winOldRows)

font := win.getFont()

Expand Down

0 comments on commit f6c1a2a

Please sign in to comment.