mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-17 05:54:59 +02:00
Bump go version to 1.21
Allows us to use the much faster builtin min/max functions for two variable min/max
This commit is contained in:
@@ -25,8 +25,8 @@ func (self *Readline) update_current_screen_size() {
|
||||
screen_size.WidthCells = 80
|
||||
screen_size.HeightCells = 24
|
||||
}
|
||||
self.screen_width = utils.Max(1, int(screen_size.WidthCells))
|
||||
self.screen_height = utils.Max(1, int(screen_size.HeightCells))
|
||||
self.screen_width = max(1, int(screen_size.WidthCells))
|
||||
self.screen_height = max(1, int(screen_size.HeightCells))
|
||||
}
|
||||
|
||||
type ScreenLine struct {
|
||||
|
||||
Reference in New Issue
Block a user