mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-11 02:59:40 +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:
@@ -105,7 +105,7 @@ func edit_loop(data_to_send string, kill_if_signaled bool, on_data OnDataCallbac
|
||||
lp.OnInitialize = func() (string, error) {
|
||||
pos, chunk_num := 0, 0
|
||||
for {
|
||||
limit := utils.Min(pos+2048, len(data_to_send))
|
||||
limit := min(pos+2048, len(data_to_send))
|
||||
if limit <= pos {
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user